网站首页  词典首页

请输入您要查询的函数:

 

术语 getclassname
释义 GetClassName
语法:
int GetClassName( HWND hWnd,
LPTSTR lpClassName,
int nMaxCount
);
GetClassName函数
该GetClassName函数检索哪一等级指定的窗口所属的名称。
参数
hWnd
[in]的窗口句柄,并间接地类所属的窗口。
lpClassName
[out]指向的缓冲区接收类的名称字符串。
nMaxCount
[in]指定的长度,在TCHAR,缓冲区的指向的lpClassName参数。类名字符串被截断,如果它的长度超过了缓冲区,并且始终空终止。
返回值
如果函数成功,返回值是TCHAR人数复制到指定的缓冲区。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在Windows 95/98/Me:GetClassNameW是支持的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版本。
参见
窗口类的概述,FindWindow,GetClassInfo,GetClassLong,GetClassWord
==英文原文==GetClassName Function
The GetClassName function retrieves the name of the class to which the specified window belongs.
Syntax
int GetClassName( HWND hWnd,
LPTSTR lpClassName,
int nMaxCount
);
Parameters
hWnd
[in] Handle to the window and, indirectly, the class to which the window belongs.
lpClassName
[out] Pointer to the buffer that is to receive the class name string.
nMaxCount
[in] Specifies the length, in TCHAR, of the buffer pointed to by the lpClassName parameter. The class name string is truncated if it is longer than the buffer and is always null-terminated.
Return Value
If the function succeeds, the return value is the number of TCHAR copied to the specified buffer.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
Windows 95/98/Me: GetClassNameW 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 , FindWindow , GetClassInfo , GetClassLong , GetClassWord
==原始网址==http://msdn.microsoft.com/en-us/library/ms633582(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:20:29