void CaptureContext::SaveChanges() { if(m_CaptureMods & CaptureModifications::Renames) SaveRenames(); if(m_CaptureMods & CaptureModifications::Bookmarks) SaveBookmarks(); if(m_CaptureMods & CaptureModifications::Notes) SaveNotes(); m_CaptureMods = CaptureModifications::NoModifications; }
extern "C" __declspec(dllexport) int Unload(void) { CloseNotesList(); CloseReminderList(); SaveNotes(); SaveReminders(); DestroyMsgWindow(); WS_CleanUp(); TermSettings(); UnhookEvent(hkFontChange); UnhookEvent(hkColorChange); UnhookEvent(hkOptInit); IcoLib_ReleaseIcon(g_hReminderIcon); DeleteObject(hBodyFont); DeleteObject(hCaptionFont); if (hRichedDll) FreeLibrary(hRichedDll); return 0; }