|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
CreateMDIWindow
The CreateMDIWindow function creates a multiple document interface (MDI) child window.
HWND CreateMDIWindow(
LPTSTR lpClassName,
| // pointer to registered child class name
| LPTSTR lpWindowName,
| // pointer to window name
| DWORD dwStyle,
| // window style
| int X,
| // horizontal position of window
| int Y,
| // vertical position of window
| int nWidth,
| // width of window
| int nHeight,
| // height of window
| HWND hWndParent,
| // handle to parent window (MDI client)
| HINSTANCE hInstance,
| // handle to application instance
| LPARAM lParam
| // application-defined value
| );
|
|
Parameters
lpClassName
Points to a null-terminated string specifying the window class of the MDI
child window. The class name must have been registered by a call to the RegisterClass function.
lpWindowName
Points to a null-terminated string that represents the window name. Windows
displays the name in the title bar of the child window.
dwStyle
Specifies the style of the MDI child window. If the MDI client window is
created with the MDIS_ALLCHILDSTYLES window style, this parameter can be any
combination of the window styles listed in the description of the CreateWindow function. Otherwise, this parameter can be one or more of the following
values:
Value
| Meaning
| WS_MINIMIZE
| Creates an MDI child window that is initially minimized.
| WS_MAXIMIZE
| Creates an MDI child window that is initially maximized.
| WS_HSCROLL
| Creates an MDI child window that has a horizontal scroll bar.
| WS_VSCROLL
| Creates an MDI child window that has a vertical scroll bar.
|
X
Specifies the initial horizontal position, in client coordinates, of the MDI
child window. If this parameter is CW_USEDEFAULT, the MDI child window is
assigned the default horizontal position.
Y
Specifies the initial vertical position, in client coordinates, of the MDI
child window. If this parameter is CW_USEDEFAULT, the MDI child window is assigned
the default vertical position.
nWidth
Specifies the initial width, in device units, of the MDI child window. If this
parameter is CW_USEDEFAULT, the MDI child window is assigned the default
width.
nHeight
Specifies the initial height, in device units, of the MDI child window. If
this parameter is set to CW_USEDEFAULT, the MDI child window is assigned the
default height.
hWndParent
Identifies the MDI client window that will be the parent of the new MDI child
window.
hInstance
Identifies the instance of the application creating the MDI child window.
lParam
Specifies an application-defined value.
Return Values
If the function succeeds, the return value is the handle to the created window.
If the function fails, the return value is NULL.
Remarks
Using the CreateMDIWindow function is similar to sending the WM_MDICREATE message to an MDI client
window, except that the function can create an MDI child window in a different
thread, while the message cannot.
Windows 95: The system can support a maximum of 16,364 window handles.
See Also
CreateWindow, RegisterClass, WM_MDICREATE
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|