Prev Next

LVM_SETITEMSTATE Overview  Group

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; 

 

Parameters

i
Index of the list view item.
pitem
Pointer to an LV_ITEM structure. The stateMask member specifies which state bits to change, and the state member contains the new values for those bits. The other members are ignored.

Return Values

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.

See Also

ListView_SetItemState, LV_ITEM