术语 | setclassword |
释义 | SetClassWord 语法: WORD SetClassWord( HWND hWnd, int nIndex, WORD wNewWord ); SetClassWord功能 替换函数的SetClassWord在指定到为窗口类的指定窗口类属于额外的内存偏移量的16位(字)值。 注意:此功能仅提供了与16兼容的Microsoft Windows位版本。应用程序应该使用SetClassLong函数。 参数 hWnd [in]的窗口句柄,并间接地类所属的窗口。 nIndex [in]指定的从零开始的字节偏移值被替换。有效值范围在零通过阶级内存字节数减2,例如,如果您指定的10个或更多个字节内存的增加课时,为8的价值将是对第五个16位整数索引。 wNewWord [in]指定替代的价值。 返回值 如果函数成功,返回值是指定的16位整数以前的值。如果该值不是以前设置,返回值是零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 通过指定储备在与RegisterClass的函数所使用的WNDCLASS结构cbClsExtra成员非零值增加课时的内存。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 UnicodeImplemented为Unicode版本。 参见 窗口类的概述,GetClassWord,注册窗口,SetClassLong,窗口类 ==英文原文==SetClassWord Function The SetClassWord function replaces 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 SetClassLong function. Syntax WORD SetClassWord( HWND hWnd, int nIndex, WORD wNewWord ); 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 replaced. 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 8 would be an index to the fifth 16-bit integer. wNewWord [in] Specifies the replacement value. Return Value If the function succeeds, the return value is the previous value of the specified 16-bit integer. If the value was not previously set, the return value is zero. If the function fails, the return value 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 , GetClassWord , RegisterClass , SetClassLong , WNDCLASS ==原始网址==http://msdn.microsoft.com/en-us/library/ms633590(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。