Contents Index Topic Contents | ||
Previous Topic: LVM_SETITEMPOSITION32 Next Topic: LVM_SETITEMTEXT |
LVM_SETITEMSTATE
LVM_SETITEMSTATE wParam = (WPARAM) (int) i; lParam = (LPARAM) (LPLVITEM) pitem;Changes the state of an item in a list view control. You can send this message explicitly or by using the ListView_SetItemState macro.
- If you send this message explicitly, it returns TRUE if successful or FALSE otherwise.
- i
- Index of the list view item.
If this parameter is -1, then the state change is applied to all items.- pitem
- Address of an LVITEM 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.
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.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.