The WindowEx.SetWindowLong function changes an attribute of the specified window.
*** = Not Available At This Time
number WindowEx.SetWindowLong(
number hWnd, -- handle of window
string nIndex, --offset of value to set
string dwNewLong --new value
);
Parameters
hWnd
Identifies the window and, indirectly, the class to which the window belongs.
nIndex
Specifies the offset to the value to be set. specify one of the following values:
GWL_EXSTYLE Sets a new extended window style.
GWL_STYLE Sets a new window style.
GWL_WNDPROC Sets a new address for the window procedure.***
GWL_HINSTANCE Sets a new application instance handle.***
GWL_ID Sets a new identifier of the window.
GWL_USERDATA Sets the 32-bit value associated with the window. Each window has a corresponding 32-bit value intended for use by the application that created the window. ***
dwNewLong
Specifies the replacement value.
Example 1: When Setting Window Style
WS_POPUP.."|"..WS_BORDER.."|"..WS_SYSMENU
Example 2: When Setting Window ExStyle
WS_EX_WINDOWEDGE.."|"..WS_EX_TOOLWINDOW.."|"..WS_EX_TOPMOST
Example 2: When Setting A New ID
"44557"
Return Values
If the function succeeds, the return value is the previous value of the Window long.
If the function fails, the return value is 0.