how to sort the list box Items?
-
can anyone helpme out how to sort listbox items as per our requirement,but not setting the properties sort option. :confused: SARVEJANA SUKINOBAVANTHU Ashok
-
can anyone helpme out how to sort listbox items as per our requirement,but not setting the properties sort option. :confused: SARVEJANA SUKINOBAVANTHU Ashok
using LVM_SORTITEMSEX message You need to pass it a function that compares two items and says whether the first goes before the second. The prototype is a global or static function
int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
typically, you pass a pointer to the struct with the window handle of the list control and the information how to sort as "paramSort".
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify!|Fold With Us!