Complex (for me) problem involving MFC
Posted on 2012-08-19
The situation is that I have a project comprised of multiple document (in a tabbed interface) with different views. The underlying document is update dynamically via propertypage input.
I've implemented HTML Help that is accessed by a typical menu that is attached to the frame.
When the basic document view is activated, I post a int variable and a message string in the application control logic that can be referenced in the frame logic that initiates the help display via HtmlHelp(xx, text); statement.
When the user activates the propertypage(s), via a frame button, each page as it is activated posts its own int variable and message string in the application control logic, again, to make the information available to the frame logic so the user can click on the frame menu to activate the help call. --> I'm doing a variation of context help, ergo the int variable (represents a link within the HTML Help file) and the text is text that I add to the menu so that the user sees the equivalent of, "click for help on xxxxxxxx".
Since the propertytpage implementation is modeless, the HTML Help viewer flashes, then disappears.
If I then click on the title bar of the propertypage dialog, the HTML Help viewer will appear under the propertypage dialog; that is great because then the user can drag it off to the side so he / she can read the help text that is specific to the displayed page.
So since that is what I want to achieve I need some way of simulating the click on the tiotle bar of the propertypage dialog or an equivalent.
This is really deep in the weeds for me and I haven't been able to arrive at a solution .
Any ideas or help would be appreciated.