Enables or disables a group.
To send this message, call the SendMessage function as follows.
lResult = SendMessage( // returns int in lResult (HWND) hWndControl, // handle to destination control (UINT) LVM_ENABLEGROUPVIEW, // message ID (WPARAM) wParam, // = (WPARAM) (BOOL) fEnable (LPARAM) lParam // = (LPARAM) (LPARAM) lParam );
Parameters
- fEnable
- [in] BOOL that indicates whether to enable or disable the group. Use TRUE to enable group view, FALSE to disable it.
- lParam
- [in] Must be NULL.
Return Value
Returns one of the following:
0 The group is already in an enabled or disabled state. 1 The state of the group was successfully changed. -1 The operation failed.
Message Requirements
Header commctrl.h Minimum operating systems Windows NT Whistler