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.
Printable View
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.
Question mark: set this style WS_EX_CONTEXTHELP for your dialog.
HTH.
How do I do the same thing for property page? I have tried WS_EX_CONTEXTHELP without success.
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.
Handle WM_CONTEXTMENU message to get RightClick Notification. Then call WinHelp API to display CS Help.