WORD GetWindowWord(hWnd,nIndex)
This function retrieves information about the window identified by hWnd.
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 | ||
GWW_HINSTANCE | Instance handle of the module that owns the window. | ||
GWW_HWNDPARENT | Handle of the parent window, if any. The SetParent function changes the parent window of a child window. An application should not call the SetWindowLong function to change the parent of a child window. | ||
GWW_ID | Control ID of the child window. |
The return value specifies information about the given window.
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.