Windows Dev Center

LVGroupCompare 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


INT LVGroupCompare(
  _In_ INT  Group1_ID,
  _In_ INT  Group2_ID,
  _In_ VOID *pvData
);

Parameters

Group1_ID [in]

Type: INT

The ID of the first group.

Group2_ID [in]

Type: INT

The ID of the second group.

pvData [in]

Type: VOID*

A pointer to the application-defined information. This comes from the message that was called; for LVM_INSERTGROUPSORTED it is LVINSERTGROUPSORTED.pvData, and for LVM_SORTGROUPS it is the plv parameter.

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]

Header

Commctrl.h

DLL

Comctl32.dll

See also

Reference
LVM_INSERTGROUPSORTED
LVINSERTGROUPSORTED
LVM_SORTGROUPS

 

 

Community Additions

ADD
Show:
© 2015 Microsoft