Export (0) Print
Expand All
Expand Minimize

ListView_EnableGroupView macro

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

A BOOL that indicates whether to enable a list-view control to group displayed items. Use TRUE to enable grouping, FALSE to disable it.

Return value

Returns one of the following values.

Return codeDescription
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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft