网站首页  词典首页

请输入您要查询的函数:

 

术语 getclassinfoex
释义 GetClassInfoEx
语法:
BOOL GetClassInfoEx( HINSTANCE hinst,
LPCTSTR lpszClass,
LPWNDCLASSEX lpwcx
);
GetClassInfoEx功能
该GetClassInfoEx函数检索信息窗口类,包括手柄的小图标与窗口类相关联。该GetClassInfo功能不检索的句柄小图标。
参数
hinst
[in]句柄的应用程序创建类的实例。检索有关的系统(如按钮或列表框)中定义的类的信息,将该参数设置为NULL。
lpszClass
[in]指向一个空结束的字符串,其中包含的类的名称。该名称必须是一个预注册类或先前调用RegisterClass的或RegisterClassEx函数注册的类。另外,此参数可以是一个类原子由以前调用创建的注册窗口或RegisterClassEx。原子必须在低lpszClass命令字;的高位字必须为零。
lpwcx
[out]指向1 WNDCLASSEX结构,接收有关类的信息。
返回值
如果该函数找到一个匹配的阶级,复制数据,则返回值为非零。
如果该函数没有找到匹配的阶级,复制数据,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
类原子创建使用RegisterClass的或RegisterClassEx函数,而不是GlobalAddAtom函数。
在Windows 95/98/Me:GetClassInfoExW是支持的Unicode(MSLU)微软层。请注意,此功能后续调用将覆盖以前呼吁的结果,所以您必须保存任何结果,您要使用更高版本。若要使用此版本,您必须添加一些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.5
UnicodeImplemented为ANSI和Unicode版本。
参见
窗口类的概述,GetClassLong,GetClassName,RegisterClass的,RegisterClassEx
==英文原文==GetClassInfoEx Function
The GetClassInfoEx function retrieves information about a window class, including a handle to the small icon associated with the window class. The GetClassInfo function does not retrieve a handle to the small icon.
Syntax
BOOL GetClassInfoEx( HINSTANCE hinst,
LPCTSTR lpszClass,
LPWNDCLASSEX lpwcx
);
Parameters
hinst
[in] Handle to the instance of the application that created the class. To retrieve information about classes defined by the system (such as buttons or list boxes), set this parameter to NULL.
lpszClass
[in] Pointer to a null-terminated string containing the class name. The name must be that of a preregistered class or a class registered by a previous call to the RegisterClass or RegisterClassEx function. Alternatively, this parameter can be a class atom created by a previous call to RegisterClass or RegisterClassEx. The atom must be in the low-order word of lpszClass; the high-order word must be zero.
lpwcx
[out] Pointer to a WNDCLASSEX structure that receives the information about the class.
Return Value
If the function finds a matching class and successfully copies the data, the return value is nonzero.
If the function does not find a matching class and successfully copy the data, the return value is zero. To get extended error information, call GetLastError .
Remarks
Class atoms are created using the RegisterClass or RegisterClassEx function, not the GlobalAddAtom function.
Windows 95/98/Me: GetClassInfoExW is supported by the Microsoft Layer for Unicode (MSLU). Note that subsequent calls to this function will overwrite the results of previous calls, so you must save any results that you want to use later. 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.5
UnicodeImplemented as ANSI and Unicode versions.
See Also
Window Classes Overview , GetClassLong , GetClassName , RegisterClass , RegisterClassEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms633579(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:18:21