
ListView Control Sorting Arrow?
Quote:
> Using VB6.0 and the ListView Control 6.0.
> I'm looking to add the "up and down arrows" on the column
> headers to show which column is sorted and whether it's
> sorted in ascending or decending.
> I'm trying to avoid using an ImageList with icons.
> I want to get that "standard" windows look. Open explorer
> and change it to Detailed view and you'll see what I'm
> talking about.
Unless being run under XP, these arrow are not "built-in". I know I
recently saw something regarding XP having these arrows built-in, but I
can't remember if it was a style or a message or even whether it was for a
ListView or a Header control. I just know I read about it in the Platform
SDK. Even so, since the VB6 version of the ListView doesn't call into the
Common Control Library, you can't take advantage of that feature under XP
anyway (you might be able to using the VB5 version of the ListView since it
does call into the Common Control Library).
The only way I know to get these arrows is to use an ImageList and add them
yourself. If you get into some API, however, you can add the arrows to the
right of the ColumnHeader text rather than to the left of the text.
Mike