ListView_SetCheckState

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > ListView Control > Listview Control Commands > ListView: Items functions >

ListView_SetCheckState

 

Description

 

Set the state of the checkbox associated with the indicated row index in a listview.

 

Syntax

 

n = ListView_SetCheckState(hWnd, ctrlID, RowIndex, lState)

 

Returns

 

Number

If RowIndex = -1, function returns the number of items checked

If RowIndex >= 0, function returns previous Check State of RowIndex listview item

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the list-view control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

RowIndex

Number

No

The row index of the list-view item to set. Starts from 1.

If RowIndex = -1, all items will be set with the same lState.

lState

Number

No

%TRUE if checkbox must be selected

%FALSE if checkbox must be unselected

 

Remarks

 

Restrictions

 

See also

 

Examples