void DocPrintMarkList::RemoveMark(UINT32 handle) { DocPrintMark* pMark = FindMark(handle); if (pMark) { RemoveItem(pMark); delete pMark; } else { TRACEUSER( "Mike", _T("Unable to find mark during DocPrintMarkList::RemoveMark()")); } }
/*** GoToMark - Move cursor to a mark * * Purpose: * * Goes to the named mark. * * Input: * pszMark - Name of mark to go to. * * Output: * * Returns TRUE if mark exists, FALSE, otherwise. * *************************************************************************/ flagType GoToMark ( char * pszMark ) { PFILE pFile; fl fl; if (pFile = FindMark (pszMark, &fl, TRUE)) { if (TESTFLAG(FLAGS(pFile), REAL) || FileRead (pFile->pName, pFile, FALSE)) { pFileToTop (pFile); cursorfl (fl); return TRUE; } else { return FALSE; } } else { printerror ("'%s': Mark not found", pszMark); return FALSE; } }