Hi,
could somebody tell me how to exit a HTML helpfile by key-stroke "ESC"? According to the Help for Microsofts HTML Help Workshop it might be possible by a message loop using %HH_PRETRANSLATEMESSAGE.
The doc says:
"This command is called in the message loop of your Windows application to ensure proper handling of Windows messages, especially keyboard messages when running HTML Help single thread."
But I don't know how to construct and where to place such a loop, and how to retrieve the notification message "%IDCANCEL".
local dwCookie AS DWORD
HtmlHelp BYVAL %NULL,BYVAL %NULL,%HH_INITIALIZE,VARPTR (dwCookie)
CALL HtmlHelp(CBHNDL, $Helpfile, 0, 0)
WHILE GetMessage(Msg,%NULL,0,0)
IF (HtmlHelp (BYVAL %NULL,BYVAL %NULL,%HH_PRETRANSLATEMESSAGE,VARPTR(Msg))) THEN
???
ELSE
TranslateMessage Msg
DispatchMessage Msg
END IF
WEND
HtmlHelp BYVAL %NULL,BYVAL %NULL,%HH_UNINITIALIZE,VARPTR(dwCookie)
could somebody tell me how to exit a HTML helpfile by key-stroke "ESC"? According to the Help for Microsofts HTML Help Workshop it might be possible by a message loop using %HH_PRETRANSLATEMESSAGE.
The doc says:
"This command is called in the message loop of your Windows application to ensure proper handling of Windows messages, especially keyboard messages when running HTML Help single thread."
But I don't know how to construct and where to place such a loop, and how to retrieve the notification message "%IDCANCEL".
local dwCookie AS DWORD
HtmlHelp BYVAL %NULL,BYVAL %NULL,%HH_INITIALIZE,VARPTR (dwCookie)
CALL HtmlHelp(CBHNDL, $Helpfile, 0, 0)
WHILE GetMessage(Msg,%NULL,0,0)
IF (HtmlHelp (BYVAL %NULL,BYVAL %NULL,%HH_PRETRANSLATEMESSAGE,VARPTR(Msg))) THEN
???
ELSE
TranslateMessage Msg
DispatchMessage Msg
END IF
WEND
HtmlHelp BYVAL %NULL,BYVAL %NULL,%HH_UNINITIALIZE,VARPTR(dwCookie)
Comment