Inserts a group into a list view control.
To send this message, call the SendMessage function as follows.
lResult = SendMessage( // returns int in lResult (HWND) hWndControl, // handle to destination control (UINT) LVM_INSERTGROUP, // message ID (WPARAM) wParam, // = (WPARAM) (int) index (LPARAM) lParam // = (LPARAM) (PLV_GROUP) pgrp );
Parameters
- index
- [in] Index of the item where the group is to be added.
- pgrp
- [in] Pointer to a LV_GROUP 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.
Message Requirements
Header commctrl.h Minimum operating systems Windows NT Whistler