MDICREATESTRUCT structure
Contains information about the class, title, owner, location, and size of a multiple-document interface (MDI) child window.
Syntax
typedef struct tagMDICREATESTRUCT { LPCTSTR szClass; LPCTSTR szTitle; HANDLE hOwner; int x; int y; int cx; int cy; DWORD style; LPARAM lParam; } MDICREATESTRUCT, *LPMDICREATESTRUCT;
Members
- szClass
-
Type: LPCTSTR
-
The name of the window class of the MDI child window. The class name must have been registered by a previous call to the RegisterClass function.
- szTitle
-
Type: LPCTSTR
-
The title of the MDI child window. The system displays the title in the child window's title bar.
- hOwner
-
Type: HANDLE
-
A handle to the instance of the application creating the MDI client window.
- x
-
Type: int
-
The initial horizontal position, in client coordinates, of the MDI child window. If this member is CW_USEDEFAULT, the MDI child window is assigned the default horizontal position.
- y
-
Type: int
-
The initial vertical position, in client coordinates, of the MDI child window. If this member is CW_USEDEFAULT, the MDI child window is assigned the default vertical position.
- cx
-
Type: int
-
The initial width, in device units, of the MDI child window. If this member is CW_USEDEFAULT, the MDI child window is assigned the default width.
- cy
-
Type: int
-
The initial height, in device units, of the MDI child window. If this member is set to CW_USEDEFAULT, the MDI child window is assigned the default height.
- style
-
Type: DWORD
-
The style of the MDI child window. If the MDI client window was created with the MDIS_ALLCHILDSTYLES window style, this member can be any combination of the window styles listed in the Window Styles page. Otherwise, this member can be one or more of the following values.
- lParam
-
Type: LPARAM
-
An application-defined value.
Remarks
When the MDI client window creates an MDI child window by calling CreateWindow, the system sends a WM_CREATE message to the created window. The lParam member of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. The lpCreateParams member of this structure contains a pointer to the MDICREATESTRUCT structure passed with the WM_MDICREATE message that created the MDI child window.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Unicode and ANSI names |
MDICREATESTRUCTW (Unicode) and MDICREATESTRUCTA (ANSI) |
See also
- Reference
- CLIENTCREATESTRUCT
- CREATESTRUCT
- WM_CREATE
- Conceptual
- Multiple Document Interface