R.Wieser
2021-10-30 09:33:28 UTC
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
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