 |
SetWindowLong ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
LONG SetWindowLong(
HWND hWnd, // handle to window
int nIndex, // offset of value to set
LONG dwNewLong // new value
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetWindowLong IN user32;
INTEGER hWnd,;
INTEGER nIndex,;
INTEGER dwNewLong
|
 |
 |
 |
| 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 set.
dwNewLong
[in] Specifies the replacement value. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the previous value of the specified 32-bit integer. |
 |
 |
| Usage: |
 |
nStyle = GetWindowLong(m.hPopupWindow,;
GWL_EXSTYLE)
= SetWindowLong(m.hPopupWindow, GWL_EXSTYLE,;
BITOR(m.nStyle, WS_EX_LAYERED))
|
 |
 |
| Word Index links for the SetWindowLong : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-11-01 19:47:42 | | Modified: | 2007-06-11 19:54:27 | Visited in last 7 days: 54 |