本文整理汇总了C++中AboutDialog::destroy方法的典型用法代码示例。如果您正苦于以下问题:C++ AboutDialog::destroy方法的具体用法?C++ AboutDialog::destroy怎么用?C++ AboutDialog::destroy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AboutDialog
的用法示例。
在下文中一共展示了AboutDialog::destroy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DllMain
//.........这里部分代码省略.........
funcItem[CMD_LAST]._pFunc = Last;
lstrcpy(funcItem[CMD_LAST]._itemName, TEXT("Last"));
funcItem[CMD_LAST]._pShKey = new ShortcutKey;
funcItem[CMD_LAST]._pShKey->_isAlt = false;
funcItem[CMD_LAST]._pShKey->_isCtrl = true;
funcItem[CMD_LAST]._pShKey->_isShift = true;
funcItem[CMD_LAST]._pShKey->_key = VK_NEXT;
funcItem[CMD_LAST]._init2Check = false;
funcItem[CMD_SEPARATOR_4]._pFunc = NULL;
lstrcpy(funcItem[CMD_SEPARATOR_4]._itemName, TEXT("-----------"));
funcItem[CMD_SEPARATOR_4]._pShKey = NULL;
funcItem[CMD_OPTION]._pFunc = openOptionDlg;
lstrcpy(funcItem[CMD_OPTION]._itemName, TEXT("Option"));
funcItem[CMD_OPTION]._pShKey = NULL;
funcItem[CMD_OPTION]._init2Check = false;
funcItem[CMD_ABOUT]._pFunc = openAboutDlg;
lstrcpy(funcItem[CMD_ABOUT]._itemName, TEXT("About"));
funcItem[CMD_ABOUT]._pShKey = NULL;
funcItem[CMD_ABOUT]._init2Check = false;
for(int i = 0; i < MAXCOMPARE; i++)
{
compareDocs[i]=-1;
}
TCHAR nppPath[MAX_PATH];
GetModuleFileName((HMODULE)hModule, nppPath, sizeof(nppPath));
// remove the module name : get plugins directory path
PathRemoveFileSpec(nppPath);
// cd .. : get npp executable path
PathRemoveFileSpec(nppPath);
// Make localConf.xml path
TCHAR localConfPath[MAX_PATH];
lstrcpy(localConfPath, nppPath);
PathAppend(localConfPath, localConfFile);
// Test if localConf.xml exist
bool isLocal = (PathFileExists(localConfPath) == TRUE);
if (isLocal)
{
lstrcpy(iniFilePath, nppPath);
lstrcpy(compareFilePath, nppPath);
PathAppend(iniFilePath, TEXT("plugins\\config\\Compare.ini"));
}
else
{
ITEMIDLIST *pidl;
SHGetSpecialFolderLocation(NULL, CSIDL_APPDATA, &pidl);
SHGetPathFromIDList(pidl, iniFilePath);
SHGetPathFromIDList(pidl, compareFilePath);
PathAppend(iniFilePath, TEXT("Notepad++\\Compare.ini"));
}
loadSettings();
}
break;
case DLL_PROCESS_DETACH:
if (tbNext.hToolbarBmp) ::DeleteObject(tbNext.hToolbarBmp);
if (tbPrev.hToolbarBmp) ::DeleteObject(tbPrev.hToolbarBmp);
if (tbFirst.hToolbarBmp) ::DeleteObject(tbFirst.hToolbarBmp);
if (tbLast.hToolbarBmp) ::DeleteObject(tbLast.hToolbarBmp);
saveSettings();
OptionDlg.destroy();
AboutDlg.destroy();
NavDlg.destroy();
// Don't forget to deallocate your shortcut here
delete funcItem[CMD_COMPARE]._pShKey;
delete funcItem[CMD_CLEAR_RESULTS]._pShKey;
delete funcItem[CMD_COMPARE_LAST_SAVE]._pShKey;
delete funcItem[CMD_COMAPRE_SVN_BASE]._pShKey;
delete funcItem[CMD_PREV]._pShKey;
delete funcItem[CMD_NEXT]._pShKey;
delete funcItem[CMD_FIRST]._pShKey;
delete funcItem[CMD_LAST]._pShKey;
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}