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,
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,
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
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);