This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
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