BTW maybe you know why, when I'm creating the listbox from a scratch the size of item fonts are bigger that the ones used in original listbox.
Where or how change the size of it?
I was trying to use LB_SETITEMHEIGHT but without any effect.
When you create whatever control by calling a Create... function it has not an associated font.
The system will use a default font, one which may be larger than one set when your control was created from a resouece.
A solution to your sorting issue is that you create 2 listboxes. One is sorted and the other one is not sorted. Then just show/hide the listbox that you want.
Okay, there it is: You create an owner-drawn listbox of LBS_SORT style. Following this way you have to implement a comparison function (in fact it's a handler of WM_COMPAREITEM message), where you provide according to current settings any sorting algorythm you fancy.
Last edited by Igor Vartanov; April 1st, 2009 at 01:27 AM.
Bookmarks