 |
GetWindowLong ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves information about the specified window. The function also retrieves the 32-bit (long) value at the specified offset into the extra window memory. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
LONG GetWindowLong(
HWND hWnd, // handle to window
int nIndex // offset of value to retrieve
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetWindowLong IN user32;
INTEGER hWnd, INTEGER nIndex
|
 |
 |
 |
| Parameters: |
 |
hWnd
[in] Handle to the window and, indirectly, the class to which the window belongs.
nIndex
[in] Specifies the zero-based offset to the value to be retrieved.
|
 |
 |
| Return value: |
 |
If the function succeeds, the return value is the requested 32-bit value.
If the function fails, the return value is zero.
|
 |
 |
| Usage: |
 |
#DEFINE GWL_WNDPROC -4
hWinProc = GetWindowLong(_screen.HWND, GWL_WNDPROC)
|
 |
 |
| My comment: |
 |
This function, as well as GetModuleHandle, retrieves a handle to the application instance; but not only.
See also: SetWindowLong |
 |
 |
| Word Index links for the GetWindowLong : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-21 12:00:00 | | Modified: | 2007-06-11 16:20:53 | Visited in last 7 days: 222 |