Skip to content

Latest commit

 

History

History
206 lines (142 loc) · 6.7 KB

ns-winuser-mdicreatestructw.md

File metadata and controls

206 lines (142 loc) · 6.7 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:winuser.tagMDICREATESTRUCTW
MDICREATESTRUCTW (winuser.h)
Contains information about the class, title, owner, location, and size of a multiple-document interface (MDI) child window. (Unicode)
*LPMDICREATESTRUCTW
LPMDICREATESTRUCT
LPMDICREATESTRUCT structure pointer [Windows and Messages]
MDICREATESTRUCT
MDICREATESTRUCT structure [Windows and Messages]
MDICREATESTRUCTA
MDICREATESTRUCTW
WS_HSCROLL
WS_MAXIMIZE
WS_MINIMIZE
WS_VSCROLL
_win32_MDICREATESTRUCT_str
_win32_mdicreatestruct_str_cpp
winmsg.mdicreatestruct
winui._win32_mdicreatestruct_str
winuser/LPMDICREATESTRUCT
winuser/MDICREATESTRUCT
winuser/MDICREATESTRUCTA
winuser/MDICREATESTRUCTW
winmsg\mdicreatestruct.htm
winmsg
VS|winui|~\winui\windowsuserinterface\windowing\multipledocumentinterface\multipledocumentinterfacereference\multipledocumentinterfacestructures\mdicreatestruct.htm
12/05/2018
*LPMDICREATESTRUCTW, LPMDICREATESTRUCT, LPMDICREATESTRUCT structure pointer [Windows and Messages], MDICREATESTRUCT, MDICREATESTRUCT structure [Windows and Messages], MDICREATESTRUCTA, MDICREATESTRUCTW, WS_HSCROLL, WS_MAXIMIZE, WS_MINIMIZE, WS_VSCROLL, _win32_MDICREATESTRUCT_str, _win32_mdicreatestruct_str_cpp, winmsg.mdicreatestruct, winui._win32_mdicreatestruct_str, winuser/LPMDICREATESTRUCT, winuser/MDICREATESTRUCT, winuser/MDICREATESTRUCTA, winuser/MDICREATESTRUCTW
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
MDICREATESTRUCTW (Unicode) and MDICREATESTRUCTA (ANSI)
Windows
MDICREATESTRUCTW, *LPMDICREATESTRUCTW
19H1
tagMDICREATESTRUCTW
winuser/tagMDICREATESTRUCTW
LPMDICREATESTRUCTW
winuser/LPMDICREATESTRUCTW
MDICREATESTRUCTW
winuser/MDICREATESTRUCTW
c++
APIRef
kbSyntax
HeaderDef
Winuser.h
MDICREATESTRUCT
MDICREATESTRUCTA
MDICREATESTRUCTW

MDICREATESTRUCTW structure

-description

Contains information about the class, title, owner, location, and size of a multiple-document interface (MDI) child window.

-struct-fields

-field 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.

-field szTitle

Type: LPCTSTR

The title of the MDI child window. The system displays the title in the child window's title bar.

-field hOwner

Type: HANDLE

A handle to the instance of the application creating the MDI client window.

-field 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.

-field 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.

-field 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.

-field 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.

-field 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.

Value Meaning
WS_MINIMIZE
0x20000000L
Creates an MDI child window that is initially minimized.
WS_MAXIMIZE
0x01000000L
Creates an MDI child window that is initially maximized.
WS_HSCROLL
0x00100000L
Creates an MDI child window that has a horizontal scroll bar.
WS_VSCROLL
0x00200000L
Creates an MDI child window that has a vertical scroll bar.

-field 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.

Note

The winuser.h header defines MDICREATESTRUCT as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

-see-also

CLIENTCREATESTRUCT

CREATESTRUCT

Conceptual

Multiple Document Interface

Reference

WM_CREATE