网站首页  词典首页

请输入您要查询的函数:

 

术语 getclassinfo
释义 GetClassInfo
语法:
BOOL GetClassInfo( HINSTANCE hInstance,
LPCTSTR lpClassName,
LPWNDCLASS lpWndClass
);
GetClassInfo功能
该GetClassInfo函数检索信息窗口类。
注意GetClassInfo功能已被取代了GetClassInfoEx功能。您仍然可以使用GetClassInfo,但是,如果您不需要对小图标类的信息。
参数
hInstance
[in]句柄的应用程序创建类的实例。检索有关的系统(如按钮或列表框)中定义的类的信息,将该参数设置为NULL。
lpClassName
[in]
指向一个以NULL结尾的字符串包含的类的名称。该名称必须是一个预注册类或先前调用RegisterClass的或RegisterClassEx函数注册的类。
另外,此参数可以是一个原子。如果是这样,它必须是一个类原子由以前调用创建的注册窗口或RegisterClassEx。原子必须在低lpClassName命令字;的高位字必须为零。
lpWndClass
[out]指向一个WNDCLASS结构,接收有关类的信息。
返回值
如果该函数找到一个匹配的阶级,复制数据,则返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在Windows 95/98/Me:GetClassInfoW是支持的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版本。
参见
窗口类的概述,GetClassInfoEx,GetClassLong,GetClassName,注册窗口,RegisterClassEx,窗口类
==英文原文==GetClassInfo Function
The GetClassInfo function retrieves information about a window class.
Note The GetClassInfo function has been superseded by the GetClassInfoEx function. You can still use GetClassInfo, however, if you do not need information about the class small icon.
Syntax
BOOL GetClassInfo( HINSTANCE hInstance,
LPCTSTR lpClassName,
LPWNDCLASS lpWndClass
);
Parameters
hInstance
[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.
lpClassName
[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 an atom. If so, it must be a class atom created by a previous call to RegisterClass or RegisterClassEx. The atom must be in the low-order word of lpClassName; the high-order word must be zero.
lpWndClass
[out] Pointer to a WNDCLASS 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 fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
Windows 95/98/Me: GetClassInfoW 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.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Window Classes Overview , GetClassInfoEx , GetClassLong , GetClassName , RegisterClass , RegisterClassEx , WNDCLASS
==原始网址==http://msdn.microsoft.com/en-us/library/ms633578(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:21:06