ListView_EnableGroupView macro (commctrl.h)

Enables or disables whether the items in a list-view control display as a group. You can use this macro or send the LVM_ENABLEGROUPVIEW message explicitly.

Syntax

int ListView_EnableGroupView(
   HWND hwnd,
   BOOL fEnable
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

fEnable

Type: BOOL

BOOL TRUE FALSE

Return value

Type: int

Returns one of the following values:

Return code Description
0 The ability to display list-view items as a group is already enabled or disabled.
1 The state of the control was successfully changed.
-1 The operation failed.

Remarks

To use ListView_EnableGroupView, specify Comctl32.dll version 6 in the manifest. For more information on manifests, see Enabling Visual Styles.

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