WORD GetClassWord(hWnd,nIndex)
This function retrieves the word that is specified by the nIndex parameter from the WNDCLASS structure of the window specified by the hWnd parameter.
| Parameter | Type/Description |
| hWnd | HWND Identifies the window. | ||
| nIndex | int Specifies the byte offset of the value to be retrieved. It can also be one of the following values: | ||
| Value | Meaning | ||
| GCW_CBCLSEXTRA | Tells how many bytes of additional class information you have. For information on how to access this memory, see the following “Comments” section. | ||
| GCW_CBWNDEXTRA | Tells how many bytes of additional window information you have. For information on how to access this memory, see the following“Comments” section. | ||
| GCW_HBRBACKGROUND | Retrieves a handle to the background brush. | ||
| GCW_HCURSOR | Retrieves a handle to the cursor. | ||
| GCW_HICON | Retrieves a handle to the icon. | ||
| GCW_HMODULE | Retrieves a handle to the module. | ||
| GCW_STYLE | Retrieves the window-class style bits. | ||
The return value specifies the value retrieved from the WNDCLASS structure.
To access any extra two-byte values allocated when the window-class structure was created, use a positive byte offset as the index specified by the nIndex parameter, starting at zero for the first two-byte value in the extra space, 2 for the next two-byte value and so on.