non client area & context help
-
This sounds simple: I just want to add a help button on a dialog's title bar. Using the resource editor, I added the Context Help extended style. The help button "Question Mark" shows up on dialog's title bar but nothing happens when I click on it. If I don't add minimize and maximize button to the title bar, the help button works fine. I am using VC++ 6.0 on win 2000. Any help/suggestion will be appreciated. Where there is a WISH, there is a WILL.
-
This sounds simple: I just want to add a help button on a dialog's title bar. Using the resource editor, I added the Context Help extended style. The help button "Question Mark" shows up on dialog's title bar but nothing happens when I click on it. If I don't add minimize and maximize button to the title bar, the help button works fine. I am using VC++ 6.0 on win 2000. Any help/suggestion will be appreciated. Where there is a WISH, there is a WILL.
This article may help: http://codeproject.com/winhelp/mfchelp.asp [ Apologies if you've already seen it. ] /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
This sounds simple: I just want to add a help button on a dialog's title bar. Using the resource editor, I added the Context Help extended style. The help button "Question Mark" shows up on dialog's title bar but nothing happens when I click on it. If I don't add minimize and maximize button to the title bar, the help button works fine. I am using VC++ 6.0 on win 2000. Any help/suggestion will be appreciated. Where there is a WISH, there is a WILL.
from visual c++ help: Context help Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message. The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command. The Help application displays a pop-up window that typically contains help for the child window. Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
from visual c++ help: Context help Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message. The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command. The Help application displays a pop-up window that typically contains help for the child window. Sorry to dissapoint you all with my lack of a witty or poignant signature.
-
This article may help: http://codeproject.com/winhelp/mfchelp.asp [ Apologies if you've already seen it. ] /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
I did not see this article. Thanks for answering. The problem is I don't want to derive my Dialog from a class other than CDialog (I know that the given class derives from CDialog). As this seems to be a little tricky, I changed my mind. Now I just want to add a button on the title bar. When the user clicks on it, I open my own html help. Thanks again. Have a good day. PS: I don't know how to rate posts. You tell me how, I rate yours. Where there is a WISH, there is a WILL.
-
Thanks but I know this. The problem is: when you add minimize and maximize button to the dialog, the help button does not work anymore. Thanks. PS: how can I rate your post ? Where there is a WISH, there is a WILL.
I don't think you can rate posts on here. Instead, you should send a check to me at the following address:- :o) If you really want the help button and min&max buttons, you're going to have to paint the nonclient area yourself. Handle WM_NCPAINT, and draw the title bar yourself. Of course, you'll have to also handle some other WM_NC* messages in order to notice when user clicks your button. Sorry to dissapoint you all with my lack of a witty or poignant signature.