LVM_INSERTGROUP

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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;
);

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.

Returns the index of the item that the group was added to, or -1 if the operation failed.

To turn on group mode, call LVM_ENABLEGROUPVIEW or ListView_EnableGroupView.

A group cannot be inserted into an empty ListView control.

Headercommctrl.h
Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: