Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. non client area & context help

non client area & context help

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionlearning
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Djibril
    wrote on last edited by
    #1

    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.

    R J 2 Replies Last reply
    0
    • D Djibril

      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.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • D Djibril

        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.

        J Offline
        J Offline
        Jon Hulatt
        wrote on last edited by
        #3

        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.

        D 1 Reply Last reply
        0
        • J Jon Hulatt

          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.

          D Offline
          D Offline
          Djibril
          wrote on last edited by
          #4

          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.

          J 1 Reply Last reply
          0
          • R Ravi Bhavnani

            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

            D Offline
            D Offline
            Djibril
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • D Djibril

              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.

              J Offline
              J Offline
              Jon Hulatt
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups