Inserts an item into 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_INSERTITEMINGROUP, // message ID (WPARAM) wParam, // = (WPARAM) (int) iGroupId (LPARAM) lParam // = (LPARAM) (LV_ITEM) pItem );
Parameters
- iGroupId
- [in] Identifier of the group that receives the item.
- pItem
- [in] Pointer to an LVITEM structure that contains the item information.
Return Value
Returns the index of the inserted item if successful, or -1 otherwise.
Message Requirements
Header commctrl.h Minimum operating systems Windows NT Whistler