Thismacro retrieves the state of a list-view item. You can use this macro or send the LVM_GETITEMSTATE message explicitly.
UINT WINAPI ListView_GetItemState( HWND hwnd, int i, UINT mask );
Handle to the list-view control.
Index of the list-view item.
State information to retrieve. It 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 also 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.
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.
Related message: LVM_GETITEMSTATE