In the code for the OnButtonFunction() put this code.
Code:
// Open your form (dialog box)
CYourDlg* MyDialog = new CYourDlg;
MyDialog->Create(IDD_YOURDIALOGBOX, NULL);
MyDialog->ShowWindow(SW_SHOW);
You have to creat CYourDlg form. Change CYourDlg to what you have named your form that you want to open. Also, use the IDD_ that is in your properties box for your form. You can use MyDialog or change it to your taste.
HyperEngineer
If it ain't broke, it probably needs improvement.
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.