HH_TP_HELP_WM_HELP command

Opens a pop-up help topic. Generally used in response to the Windows WM_HELP message. For example, this message is sent when a user presses F1.


hwndCaller pszFile dwData
Specifies the window handle of the dialog box control for which you want pop-up help to appear. This is typically the control that has focus. Specifies the compiled help (.chm) file, and the text file that contains the pop-up help topics.

By default, the text file is named Cshelp.txt. If Cshelp.txt is located in the root of the compiled help file, then you only need to specify the help file name. If not, you must also specify the relative path.

Specifies an array of DWORDs containing pairs of dialog box control IDs and help topic IDs. The array must be terminated by 0, as in the following example:



DWORD ids[3] ;
ids[0] = ControlId ;
ids[1] = HelpId ;
ids[2] = 0 ;


Example



HtmlHelp(
hwndCTRL,
"c:\\myHelp.chm::/popups\cshelp.txt",
HH_TP_HELP_WM_HELP,
(DWORD) ids) ;

Comments

See Also

HH_DISPLAY_TEXT_POPUP
HH_TP_HELP_CONTEXTMENU


link to overview topic About commands