Using Help in Property Sheets: CPropertySheet and CPropertyPage
Objects of class CPropertySheet represent property sheets, also called tab dialog boxes. A property sheet consists of a CPropertySheet object and one or more CPropertyPage objects. A property sheet is displayed by the framework as a window with a set of tab indices, with which the user selects the current page and an area for the currently selected page.
Help in CPropertySheet is supported by the F1 key and the Help button only. The Help button appears in the application framework by default. No intervention by the user is necessary. When the user adds the help information for each of the pages inside the property sheet, the help mechanism automatically displays the help for that page when the Help button is clicked.
To remove the Help button from a property sheet, modify the sheet and all its pages as follows:
mySheet.m_psh.dwFlags &= ~PSH_HASHELP; page1.m_psp.dwFlags &= ~PSP_HASHELP; page2.m_psp.dwFlags &= ~PSP_HASHELP; mySheet.AddPage( &page1 ); mySheet.AddPage( &page2 ); mySheet.DoModal();
The m_psh variable is of type PROPSHEETHEADER. The m_psp variables are of type PROPSHEETPAGE. If all the HASHELP flags are clear (PSH_HASHELP for the property sheet object, PSP_HASHELP for the property pages), the property sheet will be created without a Help button.