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.
Other than GCW_ATOM and GCW_HICONSM, the GCW_ values support by 16-bit Windows are obsolete. You must use the GetClassLong function to retrieve the class values of a window.
WORD GetClassWord(
HWND hWnd, |
// handle of window |
int nIndex |
// offset of value to retrieve |
); |
Value |
Action |
GCW_ATOM |
Retrieves an ATOM value that uniquely identifies the window class. This is the same atom that the RegisterClass function returns. |
GCW_HICONSM |
Retrieves the handle of the small icon associated with the window. |
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.
Reserve extra class memory by specifying a nonzero value in the cbClsExtra member of the WNDCLASS structure used with the RegisterClass function.
GetClassLong, RegisterClass, SetClassLong, SetClassWord, WNDCLASS
file: /Techref/os/win/api/win32/func/src/f28_6.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/29 17:27,
3.138.134.221:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f28_6.htm"> GetClassWord</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.