Click to return to the HTML Help home page    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

HH_PRETRANSLATEMESSAGE Command


Microsoft Corporation

Updated June 10, 1999

This command is called in the message loop of your Microsoft® Windows application to ensure proper handling of Windows messages, especially keyboard messages when running HTML Help single thread.

The HTML Help API is not thread safe and must be called from one and only one thread in a process.


pszFile dwData
Must be NULL. Points to a Win32 MSG structure.

Example

MSG msg;


while (GetMessage (&msg, NULL, 0, 0)) //Retrieve a message from the
{ //calling thread's message queue
if (!HtmlHelp (
NULL,
NULL,
HH_PRETRANSLATEMESSAGE,
&msg))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}
}

Return Value

Comments

See Also

HH_INITIALIZE
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.