typedef struct tagMDICREATESTRUCT { /* mdic */
LPCSTR szClass;
LPCSTR szTitle;
HINSTANCE hOwner;
int x;
int y;
int cx;
int cy;
DWORD style;
LPARAM lParam;
} MDICREATESTRUCT;
The MDICREATESTRUCT structure contains information about the class, title, owner, location, and size of a multiple document interface (MDI) child window.
szClass
Contains a long pointer to the application-defined class of the MDI child window.
szTitle
Contains a long pointer to the window title of the MDI child window.
hOwner
Identifies the instance handle of the application creating the MDI child window.
x
Specifies the initial position of the left side of the MDI child window. If this member is set to CW_USEDEFAULT, the MDI child window is assigned a default horizontal position.
y
Specifies the initial position of the top edge of the MDI child window. If this member is set to CW_USEDEFAULT, the MDI child window is assigned a default vertical position.
cx
Specifies the initial width of the MDI child window. If this member is set to CW_USEDEFAULT, the MDI child window is assigned a default width.
cy
Specifies the initial height of the MDI child window. If this member is set to CW_USEDEFAULT, the MDI child window is assigned a default height.
style
Specifies additional styles for the MDI child window. If the window was created with the MDIS_ALLCHILDSTYLES window style, the style member may be any combination of the window styles documented with the CreateWindow function. Otherwise, it may be one or more of the following values:
Value | Meaning |
WS_MINIMIZE | MDI child window is created in a minimized state. |
WS_MAXIMIZE | MDI child window is created in a maximized state. |
WS_HSCROLL | MDI child window is created with a horizontal scroll bar. |
WS_VSCROLL | MDI child window is created with a vertical scroll bar. |
lParam
Specifies an application-defined 32-bit value.
When the MDI child window is created, Windows sends the WM_CREATE message to the window. The lParam parameter of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. The lpCreateParams member of CREATESTRUCT contains a pointer to the MDICREATESTRUCT structure passed with the WM_MDICREATE message that created the MDI child window.