网站首页  词典首页

请输入您要查询的函数:

 

术语 registerclassex
释义 RegisterClassEx
语法:
ATOM RegisterClassEx( CONST WNDCLASSEX *lpwcx
);
RegisterClassEx函数
该RegisterClassEx函数注册一个到的CreateWindow或CreateWindowEx函数调用后续使用的窗口类。
参数
lpwcx
[in]指向1 WNDCLASSEX结构。您必须填写以适当的阶级结构的属性,然后才把它的功能。
返回值
如果函数成功,返回值是一个类原子唯一标识正在注册的类。这种原子只能使用的CreateWindow,CreateWindowEx,GetClassInfo,GetClassInfoEx,FindWindow,FindWindowEx和UnregisterClass职能和IActiveIMMap::FilterClientWindows方法。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
如果您使用RegisterClassExA注册窗口类,应用程序告诉系统的创建的类的窗户期待与文字或字符的参数信息使用ANSI字符集,如果您注册使用RegisterClassExW它,应用程序要求系统传递信息为Unicode文本参数。该窗口属性函数使应用程序来查询每个窗口的性质。欲了解更多有关ANSI和Unicode函数的详细信息,请参阅函数原型公约。
所有窗口类的申请注册登记册时终止。
Windows 95/98/Me的:所有窗口类的DLL注册时未登记的。dll被卸载。
Windows NT/2000/XP的:没有一个DLL窗口类注册登记时,该DLL卸载。一个DLL必须明确取消注册它的类时,卸载。
在Windows 95/98/Me:RegisterClassEx失败如果cbWndExtra或cbClsExtra的WNDCLASSEX结构的成员包含超过40个字节。
在Windows 95/98/Me:RegisterClassExW是支持的Unicode(MSLU)微软层。若要使用此版本,您必须添加一些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
例如
有关示例,请参阅使用窗口类。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 4.0
UnicodeImplemented为ANSI和Unicode版本。
参见
窗口类的概述,CreateWindow,CreateWindowEx,FindWindow,FindWindowEx,GetClassInfo,GetClassInfoEx,GetClassName,注册窗口,UnregisterClass,的WindowProc,窗口类
==英文原文==RegisterClassEx Function
The RegisterClassEx function registers a window class for subsequent use in calls to the CreateWindow or CreateWindowEx function.
Syntax
ATOM RegisterClassEx( CONST WNDCLASSEX *lpwcx
);
Parameters
lpwcx
[in] Pointer to a WNDCLASSEX structure. You must fill the structure with the appropriate class attributes before passing it to the function.
Return Value
If the function succeeds, the return value is a class atom that uniquely identifies the class being registered. This atom can only be used by the CreateWindow, CreateWindowEx, GetClassInfo , GetClassInfoEx , FindWindow , FindWindowEx , and UnregisterClass functions and the IActiveIMMap::FilterClientWindows method.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
If you register the window class by using RegisterClassExA, the application tells the system that the windows of the created class expect messages with text or character parameters to use the ANSI character set; if you register it by using RegisterClassExW, the application requests that the system pass text parameters of messages as Unicode. The IsWindowUnicode function enables applications to query the nature of each window. For more information on ANSI and Unicode functions, see Conventions for Function Prototypes .
All window classes that an application registers are unregistered when it terminates.
Windows 95/98/Me: All window classes registered by a DLL are unregistered when the .dll is unloaded.
Windows NT/2000/XP: No window classes registered by a DLL are unregistered when the DLL is unloaded. A DLL must explicitly unregister its classes when it is unloaded.
Windows 95/98/Me: RegisterClassEx fails if the cbWndExtra or cbClsExtra member of the WNDCLASSEX structure contains more than 40 bytes.
Windows 95/98/Me: RegisterClassExW is supported by the Microsoft Layer for Unicode (MSLU). To use this version, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Example
For an example, see Using Window Classes .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 4.0
UnicodeImplemented as ANSI and Unicode versions.
See Also
Window Classes Overview , CreateWindow , CreateWindowEx , FindWindow , FindWindowEx , GetClassInfo , GetClassInfoEx , GetClassName , RegisterClass , UnregisterClass , WindowProc , WNDCLASSEX
==原始网址==http://msdn.microsoft.com/en-us/library/ms633587(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 11:25:26