ListView_GetItemState macro (commctrl.h)
Gets the state of a list-view item. You can use this macro or send the LVM_GETITEMSTATE message explicitly.
Syntax
void ListView_GetItemState(
hwndLV,
i,
mask
);
Parameters
hwndLV
Type: HWND
A handle to the list-view control.
i
Type: int
The index of the list-view item.
mask
Type: UINT
The state information to retrieve. This parameter can be a combination of the following values:
Return value
None
Remarks
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.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | commctrl.h |
See also
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.
Submit and view feedback for