This documentation is archived and is not being maintained.


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

int SetGroupInfo(
    int iGroupId,
    PLVGROUP pgrp 


The identifier of the group whose information is set.


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

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

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

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.