Thread: Hide the HELP button in MFC CPropertySheet

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    12

    Hide the HELP button in MFC CPropertySheet

    Hi,

    How should I hide the HELP button in a MFC based , CPropertSheet (wizard97 style) visual C++ application.

    I'm able to do that in Non-MFC application, but with MFC it's not working.

    Any clues?

    Thanks,

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Try...

    remove the WS_EX_CONTEXTHELP style (in the Create)

    or

    use GetWindowLong() to get the 'ex' styles, remove the WS_EX_CONTEXTHELP and SetWindowLong()

    or

    process WM_HELP msgs (IIRC return TRUE, with out the default processing )

    or if the problem presists

    have you tried using Spy++ (MSVC utility) to find its ID / message....

    You may then be able to track down some docs / write a handler to hide / intercept the message.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    12
    Thanks!

    I found the following in MSDN:

    You can deactivate the Help button capability by modifying m_psh in the property sheet object as follows:

    mySheet.m_psh.dwFlags &= ~(PSH_HASHELP);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. Newbee Q: reg. MFC dlg button & Vista UAC shield icon
    By colbyringeisen in forum Windows Programming
    Replies: 3
    Last Post: 12-29-2008, 05:16 PM
  3. Hide toobar button by tooltip text
    By Br5an in forum Windows Programming
    Replies: 0
    Last Post: 07-11-2005, 01:26 PM
  4. WIndows programming?
    By hostensteffa in forum Windows Programming
    Replies: 7
    Last Post: 06-07-2002, 08:52 PM
  5. HowTo disable button in MFC app
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 01-04-2002, 02:15 AM