|
-
Mar 28th, 2002, 09:17 PM
#1
Thread Starter
PowerPoster
ListView Icons...
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...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Mar 28th, 2002, 09:37 PM
#2
I think it will take a bit of API tomfoolery. I'm looking it up now.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 28th, 2002, 09:38 PM
#3
If you can translate the C++ into VB, you can start here...
http://msdn.microsoft.com/library/de...res/hditem.asp
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 28th, 2002, 09:50 PM
#4
Thread Starter
PowerPoster
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...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Mar 28th, 2002, 09:53 PM
#5
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.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 28th, 2002, 10:03 PM
#6
Thread Starter
PowerPoster
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?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Mar 28th, 2002, 10:14 PM
#7
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.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Mar 28th, 2002, 10:16 PM
#8
Thread Starter
PowerPoster
That's enough info to get me going. Cheers crptc.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Mar 28th, 2002, 10:33 PM
#9
-
Sep 15th, 2005, 05:46 AM
#10
Frenzied Member
Re: ListView Icons...
Any luck on getting HDF_SORTDOWN working? I'm trying, and it's not working. Any chance you can post some code?
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|