MODIFYSTYLE

Top  Previous  Next

Syntax

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

Description

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

Parameters

win - Window or dialog.

add - Styles to add.

remove - Styles to remove.

id - Optional control ID.

Return value

None

Remarks

If id is specified then the 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: MODIFYEXSTYLE, REDRAWFRAME

Example usage

' Adds a minimize box to the window, removes the maximize box
MODIFYSTYLE mywin, @MINBOX, @MAXBOX
' Show the changes
REDRAWFRAME mywin