ListView_SetGroupState
TOC
Collapse the table of content
Expand the table of content

ListView_SetGroupState macro

Sets the state for a specified group.

Syntax


LRESULT ListView_SetGroupState(
  [in] HWND hwnd,
  [in] UINT dwGroupId,
  [in] UINT dwMask,
  [in] UINT dwState
);

Parameters

hwnd [in]

Type: HWND

A handle to the list-view control.

dwGroupId [in]

Type: UINT

Specifies the group by iGroupId (see LVGROUP structure).

dwMask [in]

Type: UINT

Specifies the state values to set or clear. This is a combination of the flags listed for the state member of LVGROUP.

dwState [in]

Type: UINT

Specifies the state values to set. States that are not included here but are included in dwMask are cleared.

Return value

Returns the ID of the group (iGroupId) if successful, or -1 otherwise.

Remarks

Note  To use this macro, you must provide a manifest specifying Comclt32.dll version 6.0. For more information on manifests, see Enabling Visual Styles.
 

You can also set the group state by using ListView_SetGroupInfo.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

 

 

Show:
© 2016 Microsoft