Click to return to the HTML Help home page    
HH_HELP_CONTEXT     HH_KEYWORD_LOOKUP     HTML Help API Reference    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

HH_INITIALIZE Command


Microsoft Corporation

Updated June 10, 1999

This command initializes the help system for use and must be the first HTML Help command called. It returns a cookie which must be used in the HH_UNINITIALIZE call.

HH_INITIALIZE configures HTML Help to run on the same thread as the calling application instead of a secondary thread by setting the global property HH_GPROPID_SINGLETHREAD to VARIANT_TRUE. Running HTML Help on the same thread as the calling application requires the calling application to send messages to HTML Help by calling the HH_PRETRANSLATEMESSAGE command.


pszFile dwData
Must be NULL. Specifies a pointer to a DWORD.

This call returns a cookie that you must pass as the value of dwData when you call HH_UNINITIALIZE.


Example

DWORD dwCookie = NULL;


HtmlHelp(
NULL,
NULL,
HH_INITIALIZE,
(DWORD)&dwCookie) ; // Cookie returned by Hhctrl.ocx.

Comments

See Also

HH_PRETRANSLATEMESSAGE
HH_UNINITIALIZE


link to overview topic About commands
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.