Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LVM_SETITEMSTATE

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This 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.


LVM_SETITEMSTATE wParam = (WPARAM)(int) i; 
    lParam = (LPARAM)(LVITEM FAR *) pitem;

i

Index of the list-view item. If this parameter is –1, then the state change is applied to all items.

pitem

Pointer to 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.

If you send this message explicitly, TRUE indicates success. FALSE indicates failure.

Headercommctrl.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft