Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a dialog box from a frame

I have an application with menu driven Frame. on clicking one of the options i have to open a dialog box. how can this done?
any help is appreciated.
thanks
partha
0 Kudos
Message 1 of 2
(3,168 Views)
Just create the dialog resource in the resource editor, then create a class for it in class wizard. Next, include the header for that class in your view class, then install a menu event handler in the view class for the menu item you want to launch the dialog from. In that event handler create a object of the dialog class and call .DoModal() something like:

CMyDialog dlg;
dlg.DoModal();

That's pretty much it.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,168 Views)