Resource view - Dialog - right - - new - Dialog - add resources, and then has generated Dialog (solve resource in the view of newly generated under the background of the Dialog) right click - add the class, such as: add CMyNewDlg class, is asked in the code file (click on the button method in code), plus the header file first # include "CMyNewDlg. H", then click on the button in method: Void COnclickDlg: : OnBnClickedOk () { CMyNewDlg Dlg. Dlg. DoModal (); }
This is a dialog box create another dialog box procedure, 1 in the code above Dlg is belong to the object? DoModal is how do you know which one to open the dialog
CodePudding user response:
In the dialog class constructor to a default dialog resource ID,