Removing Help button from Wizard
-
Hi, How to totally remove the help button from a wizard (CPropertySheetEx)? thanks. p.c.
One Way: BOOL CMyPropertySheet::OnInitDialog() { CPropertySheetEx::OnInitDialog(); // this hides the Help button CWnd* pHelpButton = GetDlgItem (IDHELP); ASSERT (pHelpButton); if (pHelpButton) pHelpButton->ShowWindow (SW_HIDE); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } Bill
-
Hi, How to totally remove the help button from a wizard (CPropertySheetEx)? thanks. p.c.
Search MSDN for PSP_HASHELP and PSH_HASHELP You have to remove those flags from pages/sheet to completely remove help button. You may do this in the constructor. Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)