Visual Studio 2010 - Visual C++
CWnd::OnHelpInfo
Called by the framework when the user presses the F1 key.
afx_msg BOOL OnHelpInfo( HELPINFO* lpHelpInfo );
Parameters
Return Value
Returns TRUE if a window has the keyboard focus or if a menu is active within a window. If no window has the keyboard focus, returns FALSE.
Remarks
If a menu is active when F1 is pressed, WM_HELP is sent to the window associated with the menu; otherwise, WM_HELP is sent to the window that has the keyboard focus. If no window has the keyboard focus, WM_HELP is sent to the currently active window.
Requirements
Header: afxwin.h
See Also