A, Lord child dialogs dialog custom function
1, for child dialogs to add based on CDialog class, the class name: CChildDialog,
2, in CChildDialog. H file statement function, example: void Change (), and in CChildDialog. CPP file defined in the function, void CChildDialog: : Change () {},
3, in TEXTDlg. CPP file add # include "CChildDialog. H", in which the TEXT as the project name,
4, in TEXTDlg. CPP documents using a dialog box class defines an object: CChildDialog. H m_Dialog, so that you can pass m_Dialog. Change (), call child dialogs custom function;
Second, the data of the child dialogs to main dialog
1, for child dialogs to add based on CDialog class, the class name: CChildDialog,
2 in TEXTDlg. H file declared in a static functions: the static void Change cstrings (cs), and in TEXTDlg. CPP file defined in the function,
Cstrings edit;
Void Change (cstrings cs)
{
Edit=cs;
}
2, in CChildDialog. CPP file to add # include "TEXTDlg. H", and in CChildDialog. Message function through CTEXTDlg: in the CPP file: Change (edit1) calls the function,
Cstrings edit1;//child variables within the dialog, or want to child dialogs variables data to the main dialog
TEXTDlg: : Change (edit1);
3, the child dialogs data in a variable edit1 passed to cs of the variables in the main dialog box, the main dialog box you can use the variable cs,
Pure personal interest, sum up experience, as a reminder,