The LVM_SETITEMSTATE message changes the state of an item in a list view control. You can send this message explicitly or by using the ListView_SetItemState macro.
An item’s state value includes a set of bit flags that indicate the item’s state. The state value can also include image list indexes that indicate the item’s state image and overlay image.
LVM_SETITEMSTATE wParam = (WPARAM) (int) i; lParam = (LPARAM) (LV_ITEM FAR *) pitem;
If you send this message explicitly, it returns TRUE if successful or FALSE otherwise.
If you send this message implicitly by using the ListView_SetItemState macro, there is no return value.