向导生成器的上下文敏感帮助 问:如何在向导生成器中加入上下文帮助以及关闭按钮,这好象不是缺省值. 答:你需要处理WS_SYSMENU类型 BOOL CYourPropertySheet::OnInitDialog() { if (CPropertySheet::OnInitDialog()) { ModifyStyle(0, WS_SYSMENU, 0); ModifyStyleEx(0, WS_EX_CONTEXTHELP, 0); // The default system menu has several menu items that don't make // sense for a wizard. Remove them. Cmenu* pSystemMenu = GetSystemMenu(FALSE); if (pSystemMenu != NULL) { // Remove some items pSystemMenu->DeleteMenu(SC_RESTORE, MF_BYCOMMAND); pSystemMenu->DeleteMenu(SC_SIZE, MF_BYCOMMAND); pSystemMenu->DeleteMenu(SC_MINIMIZE, MF_BYCOMMAND); pSystemMenu->DeleteMenu(SC_MAXIMIZE, MF_BYCOMMAND); // Do not remove/hide SC_CLOSE, or the '?' icon won't be // drawn properly } // ... Other initialization, like maybe Q143210 return TRUE; } else return FALSE; }