网站首页  词典首页

请输入您要查询的函数:

 

术语 createmdiwindow
释义 CreateMDIWindow
语法:
HWND CreateMDIWindow( LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int X,
int Y,
int nWidth,
int nHeight,
HWND hWndParent,
HINSTANCE hInstance,
LPARAM lParam
);
CreateMDIWindow功能
该CreateMDIWindow函数创建一个多文档界面(MDI)子窗口。
参数
lpClassName
[in]指向一个空结束的字符串指定的MDI子窗口的窗口类。类名必须已登记向RegisterClassEx函数调用。
lpWindowName
[in]指向一个空结束的字符串,表示窗口名。系统显示在子窗口标题栏的名称。
dwStyle
[in]指定MDI子窗口样式。如果在MDI客户窗口与MDIS_ALLCHILDSTYLES窗口样式创建,这个参数可以是任何在CreateWindow函数的说明中列出的窗口样式的组合。否则,这个参数可以是一个或多个下列值。
WS_MINIMIZE
创建一个MDI子窗口,最初是最小化。
WS_MAXIMIZE
创建一个MDI子窗口,最初最大化。
WS_HSCROLL
创建一个MDI子窗口,有一个Level滚动条。
WS_VSCROLL
创建一个MDI子窗口,有一个垂直滚动条。
X
[in]指定最初的Level位置,在客户坐标的MDI子窗口。如果此参数为0,0,600,400,MDI子窗口被分配默认的Level位置。
y
[in]指定最初的垂直位置,在客户坐标的MDI子窗口。如果此参数为0,0,600,400,MDI子窗口被分配默认的垂直位置。
nWidth
[in]指定最初的宽度,以设备单位,MDI子窗口。如果此参数为0,0,600,400,MDI子窗口被分配默认宽度。
nHeight
[in]指定初始高度,在设备单位,MDI子窗口。如果此参数设置为0,0,600,400,MDI子窗口是指定的默认高度。
hWndParent
[in]句柄到MDI客户窗口,将成为新的MDI子窗口的父。
hInstance
[in]句柄的创建MDI子窗口的应用实例。
lparam的
[in]指定一个应用程序定义的值。
返回值
如果函数成功,返回值是句柄创建的窗口。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
Windows 95/98/Me中:该系统可以支持最多16364窗口句柄。
在Windows 95/98/Me:CreateMDIWindowW是支持微软层对于Unicode。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
多文档接口概述,CreateWindow,RegisterClassEx,WM_MDICREATE
==英文原文==CreateMDIWindow Function
The CreateMDIWindow function creates a multiple-document interface (MDI) child window.
Syntax
HWND CreateMDIWindow( LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int X,
int Y,
int nWidth,
int nHeight,
HWND hWndParent,
HINSTANCE hInstance,
LPARAM lParam
);
Parameters
lpClassName
[in] Pointer 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 RegisterClassEx function.
lpWindowName
[in] Pointer to a null-terminated string that represents the window name. The system displays the name in the title bar of the child window.
dwStyle
[in] 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.
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
[in] 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
[in] 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
[in] 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
[in] 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
[in] Handle to the MDI client window that will be the parent of the new MDI child window.
hInstance
[in] Handle to the instance of the application creating the MDI child window.
lParam
[in] Specifies an application-defined value.
Return Value
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 .
Remarks
Windows 95/98/Me: The system can support a maximum of 16,364 window handles.
Windows 95/98/Me: CreateMDIWindowW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Multiple Document Interface Overview , CreateWindow , RegisterClassEx , WM_MDICREATE
==原始网址==http://msdn.microsoft.com/en-us/library/ms644923(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:17:33