|
-
September 29th, 1999, 05:46 PM
#1
RButton click on Pushbutton
I want to bring up a dialog box when I RightClick on any of a series of Pushbuttons. I am running a dialog based application. How can I do this?
Thanks,
Cornel
-
September 29th, 1999, 05:52 PM
#2
Re: RButton click on Pushbutton
In class wizard you create a handler for the RButton down message. I assume you used class wizard to create a dialog class. Include the dialog classes .h file then in the handler you create a instance of the dialog. Assume you named the class DialogBox. The following will bring up the dialog in the event handler.
DlgDialogBox dlg;
dlg.DoModal();
I hope this helps.
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
|