I cannot find any decent documentation on how to implement "What's This?" help. The sort of thing I want is like Word 2000 which has a "What's This" option on the help menu. I've managed to cobble together the following, but can someone please confirm, or criticise, this scheme.
I put a "What's This" option on my help menu and a %IDM_HELP_QUESTION button on my toolbar.
I respond to these by doing,
where hWnd is the handle of my main window.
While g_HelpMode is true, I respond to %WM_LBUTTONDOWN by first cancelling help mode with
and then I use ChildWindowFromPoint to get the handle of the window under the mouse cursor. From there I can call up the appropriate context help.
Is this a sensible scheme?
Keith
------------------
I put a "What's This" option on my help menu and a %IDM_HELP_QUESTION button on my toolbar.
I respond to these by doing,
Code:
CALL SetCapture (hWnd) CALL SetCursor(LoadCursor(%NULL, BYVAL %IDC_HELP)) g_HelpMode = %TRUE
While g_HelpMode is true, I respond to %WM_LBUTTONDOWN by first cancelling help mode with
Code:
CALL ReleaseCapture() g_HelpMode = %FALSE
Is this a sensible scheme?
Keith
------------------
Comment