WORD SetWindowWord(hWnd,nIndex,wNewWord)
This function changes an attribute of the window specified by the hWnd parameter.
| Parameter | Type/Description |
| hWnd | HWND Identifies the window to be modified. | ||
| nIndex | int Specifies the byte offset of the word to be changed. It can also be one of the following values: | ||
| Value | Meaning | ||
| GWW_HINSTANCE | Instance handle of the module that owns the window. | ||
| GWW_ID | Control ID of the child window. | ||
| wNewWord | WORD Specifies the replacement value. | ||
The return value specifies the previous value of the specified word.
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.