Click to See Complete Forum and Search --> : How too add a question mark button next to close button
huang_sean
April 16th, 1999, 02:30 PM
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.
Shine B.
April 16th, 1999, 03:27 PM
Question mark: set this style WS_EX_CONTEXTHELP for your dialog.
HTH.
huang_sean
April 16th, 1999, 05:52 PM
How do I do the same thing for property page? I have tried WS_EX_CONTEXTHELP without success.
Shine B.
April 17th, 1999, 04:40 PM
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.
anil
April 17th, 1999, 08:14 PM
Handle WM_CONTEXTMENU message to get RightClick Notification. Then call WinHelp API to display CS Help.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.