I have made an MFC exe and i want to make a button that the user clicks on to open another dialog
for example a user clicks on a button with caption 'About'
and it the opens an about box
the method by sriks creates a modal dialog box. well if thats ur need, you need not read further ;-)
in case you have to create a modeless dialog, you can use the create function, supplying the DialogID as a parameter... additionally you may have to set the focus to the child dialog (others: is this really necessary??)
and remember, in both cases, you have to include the header file of your Dialog class ( say MyDialog.h ) appropriately...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.