PFNLVGROUPCOMPARE callback function

The LVGroupCompare function is an application-defined callback function used with the LVM_INSERTGROUPSORTED and LVM_SORTGROUPS messages. It defines the ordering of the groups, based on the ID. The LVGROUPCOMPARE type defines a pointer to this callback function. LVGroupCompare is a placeholder for the application-defined function name.

Syntax

PFNLVGROUPCOMPARE Pfnlvgroupcompare;

int Pfnlvgroupcompare(
  int Arg1,
  int Arg2,
  void *Arg3
)
{...}

Parameters

Arg1

Arg2

Arg3

Return Value

Type: INT

Returns a negative value if the data for Group1_ID is less than the data for Group2_ID, a positive value if it is greater, or zero if it is the same.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h

See Also

LVINSERTGROUPSORTED

LVM_INSERTGROUPSORTED

LVM_SORTGROUPS

Reference