MODIFYEXSTYLE

Top  Previous  Next

Syntax

MODIFYEXSTYLE(win as WINDOW,add as UINT,remove as UINT,OPT id=0 as INT)

Description

Adds or removes extended styles from a window, dialog or control.

Parameters

win - Window or dialog.

add - Extended styles to add.

remove - Extended styles to remove.

id - Optional control ID.

Return value

None

Remarks

If id is specified then the extended style of a control is changed whose parent is the window or dialog specified. You can add styles, remove styles, or both at the same time. Use 0 for an unused style parameter.

See Also: MODIFYSTYLE, REDRAWFRAME

Example usage

' Remove the 3D border from an edit control
CONST WS_EX_CLIENTEDGE = 0x200
MODIFYEXSTYLE mywin, 0, WS_EX_CLIENTEDGE, 2
REDRAWFRAME mywin, 2