WinXSetStyle


WinXSetStyle (hWnd, add, addEx, sub, subEx)

Chages the window style for a window

Parameter Description
hWnd The handle to the window to change the style for
add The styles to add to the existing style
addEx The extended styles to add to the existing extended style
sub The styles to remove from the current style
subEx The extended styles to remove from the current extended style

Returns

$$TRUE on success or $$FALSE on fail

Remarks

This function allows you to change the styles that WinX uses by default. You can find lists of window styles in the Win32 documentatin.

Examples

'remove the $$WS_THICKFRAME style and add the $$WS_EX_TOPMOST extended style
WinXSetStyle(#hMain, 0 $$WS_EX_TOPMOST, $$WS_THICKFRAME, 0)

Related Links

none