Collapse the table of content
Expand the table of content



Handles SHIFT+F1 Help within the application.

afx_msg void OnContextHelp( );

You must add an ON_COMMAND( ID_CONTEXT_HELP, OnContextHelp ) statement to your CWinApp class message map and also add an accelerator table entry, typically SHIFT+F1, to enable this member function.

OnContextHelp puts the application into Help mode. The cursor changes to an arrow and a question mark, and the user can then move the mouse pointer and press the left mouse button to select a dialog box, window, menu, or command button. This member function retrieves the Help context of the object under the cursor and calls the Windows function WinHelp with that Help context.


Header: afxwin.h

© 2016 Microsoft