Requires: gfawinx.lg32
Modifies the style or extended-style of a window.
ModifyStyle hWnd, [Remove][, Add]
ModifyExStyle hWnd, [Remove][, Add]
hWnd | : Window handle |
Add, Remove | : integer expression |
Remove specifies the window styles to be removed during style modification while Add specifies those to be added. Styles to be added or removed can be combined by using the bitwise OR ( | ) operator.
ModifyExStyle hWnd, WS_EX_CONTEXTHELP, WS_EX_TOOLWINDOW
The example removes the extended style WS_EX_CONTEXTHELP and adds the WS_EX_TOOLWINDOW style. The style change is applied immediately.
These commands call SetWindowPos to redraw the window by combining the following four flags:
SWP_NOSIZE - Retains the current size.
SWP_NOMOVE - Retains the current position.
SWP_NOZORDER - Retains the current Z order.
SWP_NOACTIVATE - Does not activate the window.
These commands are part of a group of Windows API functions in gfawinx.
{Created by Sjouke Hamstra; Last updated: 13/08/2019 by James Gaite}