网站首页  词典首页

请输入您要查询的函数:

 

术语 getclassword
释义 GetClassWord
语法:
WORD GetClassWord( HWND hWnd,
int nIndex
);
GetClassWord功能
该GetClassWord函数检索在指定到为窗口类的指定窗口类属于额外的内存偏移量的16位(字)值。
注意:此功能仅提供了与16兼容的Microsoft Windows位版本。应用程序应该使用GetClassLong功能。
参数
hWnd
[in]的窗口句柄,并间接地类所属的窗口。
nIndex
[in]指定的从零开始的字节偏移值要检索。有效值范围在零通过类内存的字节数,再减去2,例如,如果您指定的10个或更多个字节内存的增加课时,8个值将是第五次16位整数索引。另外还有一个有效的值,如下表所示。
GCW_ATOM
检索一个原子值唯一标识窗口类。这是相同的RegisterClass的原子或RegisterClassEx函数返回。
GCW_HICONSM
检索的句柄小图标与窗口相关联。
返回值
如果函数成功,返回值是所要求的16位值。
如果函数失败,返回值是否则,它是零。为了获得更多错误信息,调用GetLastError。
备注
通过指定储备在与RegisterClass的函数所使用的WNDCLASS结构cbClsExtra成员非零值增加课时的内存。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
窗口类的概述,GetClassLong,注册窗口,RegisterClassEx,SetClassWord,窗口类
==英文原文==GetClassWord Function
The GetClassWord function retrieves the 16-bit (WORD) value at the specified offset into the extra class memory for the window class to which the specified window belongs.
Note This function is provided only for compatibility with 16-bit versions of Microsoft Windows. Applications should use the GetClassLong function.
Syntax
WORD GetClassWord( HWND hWnd,
int nIndex
);
Parameters
hWnd
[in] Handle to the window and, indirectly, the class to which the window belongs.
nIndex
[in] Specifies the zero-based byte offset of the value to be retrieved. Valid values are in the range zero through the number of bytes of class memory, minus two; for example, if you specified 10 or more bytes of extra class memory, a value of eight would be an index to the fifth 16-bit integer. There is an additional valid value as shown in the following table.
GCW_ATOM
Retrieves an ATOM value that uniquely identifies the window class. This is the same atom that the RegisterClass or RegisterClassEx function returns.
GCW_HICONSM
Retrieves a handle to the small icon associated with the window.
Return Value
If the function succeeds, the return value is the requested 16-bit value.
If the function fails, the return value is otherwise, it is zero. To get extended error information, call GetLastError .
Remarks
Reserve extra class memory by specifying a nonzero value in the cbClsExtra member of the WNDCLASS structure used with the RegisterClass function.
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 Unicode version.
See Also
Window Classes Overview , GetClassLong , RegisterClass , RegisterClassEx , SetClassWord , WNDCLASS
==原始网址==http://msdn.microsoft.com/en-us/library/ms633583(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:16:26