How can I get an icon/picture to appear in the listview column header, to the RIGHT of the caption?
At the moment, they are all going to the left, which I don't like...
Printable View
How can I get an icon/picture to appear in the listview column header, to the RIGHT of the caption?
At the moment, they are all going to the left, which I don't like...
I think it will take a bit of API tomfoolery. I'm looking it up now.
;)
If you can translate the C++ into VB, you can start here...
http://msdn.microsoft.com/library/de...res/hditem.asp
:)
Cheers. I shall have a look, although it's probably more work than I can be bothered with.
All I wanted was an up/down arrow on a particular column to indicate sorting direction, like in OE.
Oh well...
On that page, it lists HDF_SORTDOWN and HDF_SORTUP and two of the flags for the fmt member. That is how the arrows are drawn.
;)
Well, I'm lost. I don't know enough to go from here myself - got any more help you'd be willing to throw my way?
I'd really like to, but I don't have the correct version of the header files, it seems. So I can't look up the necessary constants. But basically, HDITEM is a UDT. You just build it with the appropriate masks and properties, and use SendMessage with the HDM_SETITEM message to the Listview. Wish I could be of more help.
:)
That's enough info to get me going. Cheers crptc. :)
Check here for an example:
http://www.mvps.org/vbnet/index.html...eaderimage.htm
Any luck on getting HDF_SORTDOWN working? I'm trying, and it's not working. Any chance you can post some code?