• XPsp3 listview sort arrow problems

    From R.Wieser@21:1/5 to All on Sat Oct 30 11:33:28 2021
    Hello all,

    I'm programming Assembly on an XPsp3 machine, meaning I'm using straight API calls. The comctl32.dll shows in its properties a "file version" of 5.82.2900.5512, and a "product version" of 6.00.2900.5512

    Currently I've got a ListView pretty-much mimicking a folder view - a
    filetype icon, the filename and its size. It can also sort on the the
    filename and size columns.

    The problem :

    The filetype icons have nasty black "shadows" when I do not use
    LVM_SETBKCOLOR. However, when I do that the sorting arrows are shown with a background color too.

    In short, either ugly filetype icons, or ugly sorting arrows. :-(

    I've done some searching and found a possible solution using HDF_SORTxxx.

    https://www.gamedev.net/forums/topic/569020-set-list-view-header-sort-arrow-c-win32/
    https://stackoverflow.com/questions/254129/how-to-i-display-a-sort-arrow-in-the-header-of-a-list-view-column-using-c

    Alas, that doesn't seem to want to work. Why ? I'm not at all sure.


    I've also tried to give the header its own ImageList, but have not been able
    to show anything outof it (the shown image on the header still came from the parent ListViews imagelist).

    Bottom line :

    I'm outof ideas and can't seem to google anything which explains the
    problem.

    Help ?

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Sat Oct 30 13:46:34 2021
    I've also tried to give the header its own ImageList, but have not been
    able
    to show anything outof it (the shown image on the header still came from
    the parent ListViews imagelist).

    Scratch that. I just now retried it and it works. Good-looking filetype
    icons and as good looking sorting arrows. I must have made a mistake
    somewhere the previous time. :-|

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)