hHtmlHelp = HtmlHelp( hWndHandle,
szHelpFileName,
uiHelpCommand,
(DWORD)&link);
if (hHtmlHelp==NULL) {
MessageBox(hMainWnd,"Internal Help error"...... etc
This API displays the Topics found and then when I press the Display after selecting the topic. displays the HTML help for that topic
But
If I press Cancel on the "Topic Found" dialog box, then my program enters this if Condition..
I notice that even If I press CANCEL button, the 'hHtmlHelp' variable remains NULL.
Question :
How to detect if the user has pressed the cancel button instead of any other error ..
Thanks in Advance
Soft
Last edited by softmessager; January 30th, 2012 at 11:53 PM.
Reason: Spelling mistakes
.. and our program uses the following options while callin the help in uCommand ..
HH_KEYWORD_LOOKUP
HH_HELP_FINDER etc
I do not know how the HH_GET_LAST_ERROR fits in.
MSDN shows a different example of HtmlHelp http://support.microsoft.com/kb/297768
I recon that this is a very old example of the API.
Eiter I will have to change my archiecture of the program (working fine till now) or I may be missing something in the syntax.
Bookmarks