DialogBox
-
Hi How to create a dialog box with controls without using resource editor thanx in advance
KK
Can you be more specific create dialog box with controls?
_**
**_
WhiteSky
-
Can you be more specific create dialog box with controls?
_**
**_
WhiteSky
-
But
CDialog::Create(need to a resource);
like thism_MyDialog->Create(IDD_MYDIALOG,this);
_**
**_
WhiteSky
-
But
CDialog::Create(need to a resource);
like thism_MyDialog->Create(IDD_MYDIALOG,this);
_**
**_
WhiteSky
WhiteSky wrote:
CDialog::Create(need to a resource); like this m_MyDialog->Create(IDD_MYDIALOG,this);
no whiteSky.
IDD_MYDIALOG
is not a resource, it is only a macro declared as a #define in the resource.h header of your project. but you could have created it by yourself... anyway, Create() is the method to use to create a dialog, such as any controls on it also... the point is, ,when creating the controls, to indicate their parent as being the dialog box.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
Hi How to create a dialog box with controls without using resource editor thanx in advance
KK
With no resource template, you can create a dialog based on a DLGTEMPLATE structure by calling either CreateDialogIndirect (modeless dialog) or DialogBoxIndirect (modal dialog).
Ovidiu Cucu Microsoft MVP - Visual C++