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 |
); |
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. |
If the function succeeds, the return value is the handle to the created window.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
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.
CreateWindow, RegisterClass, WM_MDICREATE
file: /Techref/os/win/api/win32/func/src/f10_4.htm, 6KB, , updated: 2000/4/7 12:19, local time: 2024/8/18 04:14,
18.217.212.151:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f10_4.htm"> CreateMDIWindow</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.