How to Enable the Help Button on a Modal Property SheetID: Q132715
|
The F1-key help functionality and the Help button on a Modal Property sheet can be enabled by choosing Context-Sensitive Help while generating an AppWizard-generated application. In a standard AppWizard-generated application, clicking the Help button on the property sheet has no effect because there is no default handler for the Help button. This article shows by example how to obtain F1-key functionality with the Help button.
// Derive a class CMyPropertySheet from CPropertySheet.
// Include the file afxpriv.h to obtain the id for
// WM_COMMANDHELP in the implementation file for CMyPropertySheet
#include "afxpriv.h"
// add this handler in the implementation file for CMyPropertySheet
void CMyPropertySheet::OnHelp( )
{
SendMessage(WM_COMMANDHELP);
}
Please see the DLGPROP.CPP file in the MFC\SRC subdirectory of the Visual C++ installation or distribution CD directory. This source file includes source code for CPropertySheet and CPropertyPage.
Additional query words: kbinf 2.00 2.10 2.52 3.00 3.10 4.00
Keywords : kbcode kbnokeyword kbMFC kbVC
Version : 1.52 | 2.00 2.10 4.00
Platform : NT WINDOWS
Issue type :
Last Reviewed: August 3, 1999