Click to See Complete Forum and Search --> : RButton click on Pushbutton


cve
September 29th, 1999, 05:46 PM
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

GilFisher
September 29th, 1999, 05:52 PM
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.