|
-
April 16th, 1999, 02:30 PM
#1
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.
-
April 16th, 1999, 03:27 PM
#2
Re: How too add a question mark button next to close button
Question mark: set this style WS_EX_CONTEXTHELP for your dialog.
HTH.
-
April 16th, 1999, 05:52 PM
#3
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.
-
April 17th, 1999, 04:40 PM
#4
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.
-
April 17th, 1999, 08:14 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|