本文整理汇总了C++中CAboutDlg::SetTitle方法的典型用法代码示例。如果您正苦于以下问题:C++ CAboutDlg::SetTitle方法的具体用法?C++ CAboutDlg::SetTitle怎么用?C++ CAboutDlg::SetTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAboutDlg
的用法示例。
在下文中一共展示了CAboutDlg::SetTitle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ShowApplet
BOOL ShowApplet(HWND hWnd, LONG_PTR /*lData*/, LPCTSTR pstrCommand)
{
BOOL bWithFingerMenu = FALSE;
CString szPath;
CString szProgramFilesFolder;
WCHAR szInstallDir[MAX_PATH];
WCHAR szValue[MAX_PATH];
ZeroMemory(szValue, sizeof(szValue));
if (SHGetSpecialFolderPath(NULL, szValue, CSIDL_PROGRAM_FILES, FALSE))
{
szProgramFilesFolder.Format(L"%s", szValue);
}
if (RegistryGetString(HKEY_LOCAL_MACHINE, L"Software\\FingerMenu", L"InstallDir", szInstallDir, MAX_PATH) == S_OK)
{
szPath.Format(L"%s\\FingerMenu.exe", szInstallDir);
}
else
{
szPath = szProgramFilesFolder + L"\\FingerMenu\\FingerMenu.exe";
}
CFindFile finder;
if (finder.FindFile(szPath))
{
bWithFingerMenu = TRUE;
}
dlg1.SetTitle(L"Startup");
dlg1.m_bWithFingerMenu = bWithFingerMenu;
if (bWithFingerMenu)
{
dlg2.SetTitle(L"Menu options");
dlg3.SetTitle(L"Menu exclusions");
dlg7.SetTitle(L"Menu wnd exclusions");
}
dlg5.SetTitle(L"Msgbox options");
dlg6.SetTitle(L"Msgbox exclusions");
dlg8.SetTitle(L"Msgbox wnd exclusions");
dlg4.SetTitle(L"Skins");
dlg4.m_bWithFingerMenu = bWithFingerMenu;
dlgAbout.SetTitle(L"About");
// about box
CString strCredits = "\n\n"
"\tFingerMenu v1.12\n\n"
"\tFingerMsgBox v1.01\n\n"
"\rdeveloped by:\n"
"Francesco Carlucci\n"
"<[email protected]>\n"
"\n\n"
"http://forum.xda-developers.com/\n"
" showthread.php?t=459125\n";
dlgAbout.SetCredits(strCredits);
CPropertySheet sheet;
sheet.AddPage(dlg1);
if (bWithFingerMenu)
{
sheet.AddPage(dlg2);
sheet.AddPage(dlg3);
sheet.AddPage(dlg7);
}
sheet.AddPage(dlg5);
sheet.AddPage(dlg6);
sheet.AddPage(dlg8);
sheet.AddPage(dlg4);
sheet.AddPage(dlgAbout);
sheet.SetActivePage(_ttol(pstrCommand));
if (IDOK == sheet.DoModal(hWnd))
{
ReloadConfiguration();
}
return TRUE;
}