DM_SETCHECK

Far Manager

DM_SETCHECK

The DM_SETCHECK message is sent to the dialog manager to change the state of DI_CHECKBOX and DI_RADIOBUTTON items.

Param1

The ID of the dialog item that you want to change.

Param2

Param2 applies only DI_CHECKBOX and can have one of the following values (listing of FARCHECKEDSTATE):
FlagDescription
BSTATE_UNCHECKED Off - [ ] or ( )
BSTATE_CHECKED On - [x] or (*)
BSTATE_3STATE Set to undefined state - [?] (applies only to the items with DIF_3STATE flag set).
BSTATE_TOGGLE Toggle the item state. For elements with DIF_3STATE flag set the state will be toggled sequentially between "on", "off", "undefined").

Return

Previous state of the item. For DI_RADIOBUTTON returns the ID of the dialog item in the radio button group that was previously checked. (see DIF_GROUP).

Controls

ControlDescription
DI_CHECKBOX Check Box
DI_RADIOBUTTON Radio Button

Remarks

Example

See also: