Results 1 to 10 of 10

Thread: ListView Icons...

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    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]
    -----------------------------------------

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  4. #4

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    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]
    -----------------------------------------

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  6. #6

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    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]
    -----------------------------------------

  7. #7
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  8. #8

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    That's enough info to get me going. Cheers crptc.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  9. #9

  10. #10
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    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
  •  



Click Here to Expand Forum to Full Width