Issues with HtmlHelp
-
We want to display help files(.chm format) using HTMLHelp API in a particular format. HH_KEYWORD_LOOKUP command is used with HtmlHelp API to search for one or more Keywords in a compiled HTML Help (.chm) File and display it in a "Topics Found" window. We have some issues with using the HH_KEYWORD_LOOKUP command. 1)When we invoke "Topics Found" window using HH_KEYWORD_LOOKUP command, the parent window from which the "Topics Found" window was invoked doesn't get re-drawn. When you drag the "Topics Found" Window over Parent Window, all the display of the parent window gets erased and is not redrawn. But when we invoke "Topics Found" window from HTMLHelp(chm) Window , the parent window gets re-drawn. 2)When we invoke "Topics Found" window, and move the cursor out-side of the "Topics Found" window ,we get a wait cursor. We tried with all options in HWND hwndCaller by passing Parent Window Handle,Desktop and NULL.- all with similar results ( as mentioned above) NB: We need to display HTMLHelp Window only after selecting from "Topics Found" Window. Otherwise please provide us any alternative solution. Thanks In Regards shaffiq Ahamed
-
We want to display help files(.chm format) using HTMLHelp API in a particular format. HH_KEYWORD_LOOKUP command is used with HtmlHelp API to search for one or more Keywords in a compiled HTML Help (.chm) File and display it in a "Topics Found" window. We have some issues with using the HH_KEYWORD_LOOKUP command. 1)When we invoke "Topics Found" window using HH_KEYWORD_LOOKUP command, the parent window from which the "Topics Found" window was invoked doesn't get re-drawn. When you drag the "Topics Found" Window over Parent Window, all the display of the parent window gets erased and is not redrawn. But when we invoke "Topics Found" window from HTMLHelp(chm) Window , the parent window gets re-drawn. 2)When we invoke "Topics Found" window, and move the cursor out-side of the "Topics Found" window ,we get a wait cursor. We tried with all options in HWND hwndCaller by passing Parent Window Handle,Desktop and NULL.- all with similar results ( as mentioned above) NB: We need to display HTMLHelp Window only after selecting from "Topics Found" Window. Otherwise please provide us any alternative solution. Thanks In Regards shaffiq Ahamed
It sounds like your app's message queue is not getting pumped. Before calling the HTMLHelp API, start a timer with something like
SetTimer(1, 100, NULL);
. Or an alternative would be to call the HTMLHelp API from a non-GUI thread. It's strange that it behaves this way. I suggest you try to reproduce this in a small app before you go to a lot of trouble. Your help file might be trashed. -
It sounds like your app's message queue is not getting pumped. Before calling the HTMLHelp API, start a timer with something like
SetTimer(1, 100, NULL);
. Or an alternative would be to call the HTMLHelp API from a non-GUI thread. It's strange that it behaves this way. I suggest you try to reproduce this in a small app before you go to a lot of trouble. Your help file might be trashed.