Udostępnij za pośrednictwem


CListCtrl::GetFocusedGroup

Retrieves the group that has the keyboard focus in the current list-view control.

int GetFocusedGroup() const;

Return Value

The index of the group whose state is LVGS_FOCUSED, if there is such a group; otherwise, -1.

Remarks

This method sends the LVM_GETFOCUSEDGROUP message, which is described in the Windows SDK. For more information, see the LVGS_FOCUSED value of the state member of the LVGROUP structure.

Requirements

Header: afxcmn.h

This control is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

See Also

Reference

CListCtrl Class

Hierarchy Chart

LVM_GETFOCUSEDGROUP

LVGROUP

Other Resources

CListCtrl Members