capture listview header click

Started by Shawn Anderson, July 27, 2012, 02:04:33 PM

Previous topic - Next topic

Shawn Anderson

I want to sort my listview when the user clicks on the header.
I know about the listview sort command.
How do I capture the mouse click?

Rolf Brandt

You do that in Function FORM1_LISTVIEW1_LVN_COLUMNCLICK.

Jean-Pierre Leroy has a nice example here:

http://www.planetsquires.com/protect/forum/index.php?topic=2026.msg19052

Rolf

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Shawn Anderson