Partager via


CListCtrl::SetGroupInfo

Sets the information that describes the specified group of the current list-view control.

int SetGroupInfo(
      int iGroupId,
      PLVGROUP pgrp 
);

Parameters

  • iGroupId
    The identifier of the group whose information is set.

  • pgrp
    Pointer to an LVGROUP structure that contains the information to set. The caller is responsible for allocating this structure and setting its members.

Return Value

The ID of the group if the method is successful; otherwise, -1.

Remarks

This method sends the LVM_SETGROUPINFO message, which is described in the Windows SDK.

Requirements

Header: afxcmn.h

This control is supported in Windows XP and later.

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

See Also

Concepts

CListCtrl Class

CListCtrl Members

Hierarchy Chart

LVM_SETGROUPINFO

CListCtrl::GetGroupInfo