please dont rip this site
Prev Next

ListView_GetItemState info  Overview  Group

The ListView_GetItemState macro retrieves the state of a list view item. You can use this macro or explicitly send the LVM_GETITEMSTATE message.

An itemís state information includes a set of bit flags, as well as image list indexes that indicate the itemís state image and overlay image.

UINT WINAPI ListView_GetItemState(

    HWND hwnd,

    int i,

    UINT mask



Handle to the list view control.
Index of the list view item.
Specifies the state information to retrieve. This parameter can be a combination of the following values:




The item is marked for a cut and paste operation.


The item is highlighted as a drag-and-drop target.


The item has the focus, so it is surrounded by a standard focus rectangle. Although more than one item may be selected, only one item can have the focus.


The item is selected. The appearance of a selected item depends on whether it has the focus, and on the system colors used for selection.


Use this mask to retrieve the itemís overlay image index.


Use this mask to retrieve the itemís state image index.

Return Values

Returns the current state for the specified item. The only valid bits in the return value are those that correspond to the bits set in the mask parameter.

See Also


file: /Techref/os/win/api/win32/mac/src/mac01_19.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2023/12/10 08:31,

 ©2023 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> ListView_GetItemState</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!


Welcome to!