CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    California
    Posts
    5

    How too add a question mark button next to close button

    How do I add a small question mark button next to the close button at the upper right corner of the dialog box? Also, how do I enable the right click functionality on any control so that it will show up "What's this"?

    Thanks.


  2. #2
    Join Date
    Apr 1999
    Posts
    23

    Re: How too add a question mark button next to close button

    Question mark: set this style WS_EX_CONTEXTHELP for your dialog.
    HTH.


  3. #3
    Join Date
    Apr 1999
    Location
    California
    Posts
    5

    Re: How too add a question mark button next to close button

    How do I do the same thing for property page? I have tried WS_EX_CONTEXTHELP without success.


  4. #4
    Join Date
    Apr 1999
    Posts
    23

    Re: How too add a question mark button next to close button

    If I'm not mistaken, there's no close button ( [X] ) on the property page but the property sheet does have one. So if I understood your question correctly, you can do something like this:

    BOOL CMyPropertySheet::OnInitDialog()
    {
    BOOL bResult = CPropertySheet::OnInitDialog();
    ModifyStyleEx(0, WS_EX_CONTEXTHELP);
    // .......
    return bResult;
    }
    Any questions, feel free to ask.
    Shine B.


  5. #5
    Join Date
    Apr 1999
    Posts
    2

    Re: How too add a question mark button next to close button

    Handle WM_CONTEXTMENU message to get RightClick Notification. Then call WinHelp API to display CS Help.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured