This message retrieves the state of a list-view item. You can send this message explicitly or by using the ListView_GetItemState macro.
LVM_GETITEMSTATE wParam = (WPARAM)(int) i; lParam = (LPARAM)(UINT) mask;
Index of the list-view item.
State data to retrieve. It is one or 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 data includes a set of bit flags as well as image list indexes that indicate the item's state image and overlay image.