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 12:19, local time: 2025/5/3 12:06,
18.222.226.47:LOG IN
|
©2025 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://www.piclist.com/techref/os/win/api/win32/func/src/f28_6.htm"> GetClassWord</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
The Backwoods Guide to Computer Lingo |
.