LVM_INSERTGROUP (Windows CE 5.0)
To send this message, call the SendMessage function.
lResult = SendMessage( (HWND) hWndControl, (UINT) LVM_INSERTGROUP, (WPARAM) wParam, // = (WPARAM) (int) index; (LPARAM) lParam // = (LPARAM) (PLVGROUP) pgrp;);
Parameters
- index
Index where the group is to be added. If this is -1, the group is added at the end of the list. - pgrp
Pointer to a LVGROUP structure that contains the group to add.
Return Value
Returns the index of the item that the group was added to, or -1 if the operation failed.
Remarks
To turn on group mode, call LVM_ENABLEGROUPVIEW or ListView_EnableGroupView.
A group cannot be inserted into an empty ListView control.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Commctrl.h.
See Also
Send Feedback on this topic to the authors