Home > Back-end >  Several problems about c
Several problems about c

Time:09-15


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,

CodePudding user response:

reference 1st floor SDGHCHJ response:
in the dialog box class constructor to a default dialog resource ID,

Dlg is an object? Will be of general procedure dialog box, the constructor is how do you know which ID? Dlg. DoModal (); This is how to put this ID now to the constructor, can you give an example?

CodePudding user response:

To look at your code,
The default parameters, the default parameters, the default parameters,

CodePudding user response:

reference SDGHCHJ reply: 3/f
to look at your code,
Default arguments, the default parameter, the default parameters,

The default parameters, which DDoModal? This is a function dialog box class repository? Look not to understand

CodePudding user response:

reference SDGHCHJ reply: 3/f
to look at your code,
Default arguments, the default parameter, the default parameters,

Which is the default function? DoModal? This is not a dialog class library function? Don't understand?

CodePudding user response:

reference 5 floor luyaosheng reply:
Quote: refer to the third floor SDGHCHJ response:
to look at your code,
Default arguments, the default parameter, the default parameters,

Which is the default function? DoModal? This is not a dialog class library function? Don't understand?
in the constructor of the default parameters

CodePudding user response:

Look at the top CPP, N binding a macro definition
  • Related