LONG GetWindowLong(hWnd,nIndex)
This function retrieves information about the window identified 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 | ||
| GWL_EXSTYLE | Extended window style. | ||
| GWL_STYLE | Window style | ||
| GWL_WNDPROC | Long pointer to the window function | ||
The return value specifies information about the given window.
To access any extra four-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 four-byte value in the extra space, 4 for the next four-byte value and so on.