次の方法で共有


LVM_INSERTGROUP (Compact 2013)

3/28/2014

To send this message, call the SendMessage function.

Syntax

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

Header

commctrl.h

See Also

Reference

List-View Controls Messages