网站首页  词典首页

请输入您要查询的函数:

 

术语 unregisterclass
释义 UnregisterClass
语法:
BOOL UnregisterClass( LPCTSTR lpClassName,
HINSTANCE hInstance
);
UnregisterClass功能
该UnregisterClass函数注销窗口类,腾出类所需的内存。
参数
lpClassName
[in]指向一个空结束的字符串或类原子。如果lpClassName是一个字符串,它指定窗口的类名。这个类名必须已登记因先前调用RegisterClass的或RegisterClassEx函数。系统类,如对话框控件,不能被注销。如果这个参数是一个原子,它必须是一个类原子因先前调用RegisterClass的或RegisterClassEx函数创建。原子必须在低lpClassName命令字;的高位字必须为零。
hInstance
[in]句柄的模块创建类的实例。
返回值
如果函数成功,返回值为非零。
如果类无法找到或者一个窗口仍然存在,这是与类创建,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在调用这个函数,应用程序必须销毁指定类创建的所有窗口。
所有窗口类的申请注册登记册时终止。
类原子产生特殊的原子只能由注册窗口和RegisterClassEx。
Windows 95/98/Me的:所有窗口的DLL注册登记类DLL时被卸载。
Windows NT/2000/XP的:没有一个DLL窗口登记注册时,注册类的。dll被卸载。
在Windows 95/98/Me:UnregisterClassW是支持的Unicode(MSLU)微软层。若要使用此版本,您必须添加一些文件到您的应用,概述了对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版本。
参见
窗口类的概述,RegisterClass的,RegisterClassEx
==英文原文==UnregisterClass Function
The UnregisterClass function unregisters a window class, freeing the memory required for the class.
Syntax
BOOL UnregisterClass( LPCTSTR lpClassName,
HINSTANCE hInstance
);
Parameters
lpClassName
[in] Pointer to a null-terminated string or a class atom. If lpClassName is a string, it specifies the window class name. This class name must have been registered by a previous call to the RegisterClass or RegisterClassEx function. System classes, such as dialog box controls, cannot be unregistered. If this parameter is an atom, it must be a class atom created by a previous call to the RegisterClass or RegisterClassEx function. The atom must be in the low-order word of lpClassName; the high-order word must be zero.
hInstance
[in] Handle to the instance of the module that created the class.
Return Value
If the function succeeds, the return value is nonzero.
If the class could not be found or if a window still exists that was created with the class, the return value is zero. To get extended error information, call GetLastError .
Remarks
Before calling this function, an application must destroy all windows created with the specified class.
All window classes that an application registers are unregistered when it terminates.
Class atoms are special atoms returned only by RegisterClass and RegisterClassEx.
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 registers are unregistered when the .dll is unloaded.
Windows 95/98/Me: UnregisterClassW 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 .
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
Window Classes Overview , RegisterClass , RegisterClassEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms644899(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:37