Selects or deselects an item in a list-view control. You can use this macro or send the LVM_SETITEMSTATE message explicitly.
A handle to a list-view control.
The index of the item for which to set the check state.
A value that is set to TRUE to select the item, or FALSE to deselect it.
No return value.
This macro should only be used for list-view controls with the LVS_EX_CHECKBOXES style. Although the LVM_SETITEMSTATE message used by ListView_SetCheckState is found on Microsoft Windows 95 and later systems, the LVS_EX_CHECKBOXES style was not introduced until version 4.70 of the common controls.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|