Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Sets the state for a specified group.
Syntax
LRESULT ListView_SetGroupState(
  [in] HWND hwnd,
  [in] UINT dwGroupId,
  [in] UINT dwMask,
  [in] UINT dwState
);
Parameters
[in] hwnd
Type: HWND
A handle to the list-view control.
[in] dwGroupId
Type: UINT
Specifies the group by iGroupId (see LVGROUP structure).
[in] dwMask
Type: UINT
Specifies the state values to set or clear. This is a combination of the flags listed for the state member of LVGROUP.
[in] dwState
Type: UINT
Specifies the state values to set. States that are not included here but are included in dwMask are cleared.
Return value
Type: LRESULT
Returns the ID of the group (iGroupId) if successful, or -1 otherwise.
Remarks
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] | 
| Minimum supported server | Windows Server 2008 [desktop apps only] | 
| Target Platform | Windows | 
| Header | commctrl.h |