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
Printable View
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
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.