PSH_NOCONTEXTHELP
Version 5.80. Removes the context-sensitive Help button ("?"), which is usually present on the caption bar of property sheets. This flag is not valid for wizards. See Property Sheets for a discussion of how to remove the caption bar help button for earlier versions of the Common Controls.
PSH_HASHELP
Permits property sheet pages to display a Help button. You must also set the PSP_HASHELP flag in the page's PROPSHEETPAGE structure when the page is created. If any of the initial property sheet pages enable a Help button, PSH_HASHELP will be set automatically. If none of the initial pages enable a Help button, you must explicitly set PSH_HASHELP if you want to have Help buttons on any pages that might be added later.
You can deactivate the Help button capability by modifying m_psh in the property sheet object as follows:mySheet.m_psh.dwFlags &= ~(PSH_HASHELP);You can activate the Help button again with the following:mySheet.m_psh.dwFlags |= PSH_HASHELP;
Version 5.80. Removes the context-sensitive Help button ("?"), which is usually present on the caption bar of property sheets. This flag is not valid for wizards. See Property Sheets for a discussion of how to remove the caption bar help button for earlier versions of the Common Controls.
PSH_HASHELP
Permits property sheet pages to display a Help button. You must also set the PSP_HASHELP flag in the page's PROPSHEETPAGE structure when the page is created. If any of the initial property sheet pages enable a Help button, PSH_HASHELP will be set automatically. If none of the initial pages enable a Help button, you must explicitly set PSH_HASHELP if you want to have Help buttons on any pages that might be added later.
You can deactivate the Help button capability by modifying m_psh in the property sheet object as follows:mySheet.m_psh.dwFlags &= ~(PSH_HASHELP);You can activate the Help button again with the following:mySheet.m_psh.dwFlags |= PSH_HASHELP;
解决方案 »
- IOCP中使用WSARecv的内存泄露问题
- 求达人发一份额Windows网络编程第二版 中文版 电子书 发到我的QQ邮箱好了,二百分送上,明日再加一百分。
- 关于send函数效率的问题
- 菜单栏打勾问题
- 关于MSXML的使用
- 请教:如何编程实现跟局域网中的另外一台计算机(安装Windows 2000 Server)校对系统时间?有API可用吗?
- 关于InstallShield的问题,请大家指点(我就这么多分了)
- 怎么修改动态的,在程序里面修改菜单项的名字,
- 请问:《Visual C++ MFC编程实例》一书怎么样?
- 求助:用ShellExecute函数如何打开文件夹并排序显示
- 谁知道国外专家网的地址 先谢了!!
- 关于DLL钩子的问题。。。(请教各位大侠)
CPage1 page1;
CPage2 page2;
CPage3 page3;
CPage4 page4; cs.AddPage(&page1);
cs.AddPage(&page2);
cs.AddPage(&page3);
cs.AddPage(&page4); cs.SetTitle("Simple", PSH_PROPTITLE);
cs.m_psh.dwFlags &= ~PSH_HASHELP; cs.SetWizardMode();
if (cs.DoModal() == ID_WIZFINISH )
.....但是这样还是不行? 应该怎么改呢? //bow
if (hWnd != NULL)
{
hWnd->ShowWindow(FALSE);
}
hWnd = GetDlgItem(IDOK);
if (hWnd != NULL)
{
hWnd->ShowWindow(FALSE);
}
// Hide the defaulted "Cancel" botton
hWnd = GetDlgItem(IDCANCEL);
if (hWnd != NULL)
{
hWnd->ShowWindow(FALSE);
}
CPropertySheet sheet("Simple PropertySheet");// Change the settings of the two pages to enable property sheet's
// Help button when the page is active. Both CStylePage and
// CColorPage are CPropertyPage-derived classes.
CStylePage style;
style.m_psp.dwFlags |= PSP_HASHELP;CColorPage color;
color.m_psp.dwFlags |= PSP_HASHELP;sheet.AddPage(&style);
sheet.AddPage(&color);// Display a modal CPropertySheet dialog.
sheet.DoModal();
To happydeer(小鹿) 和 fiolin : 方法的确可行。
谢谢众位的捧场和帮忙 //bow