ListView sorted column background color

How can I tell the listview to use the different background color for the column which is used for sorting

Normally the whole background of the listview is white, if I sort in the explorer all files for size, the size column is darker.

Steffen


Answer this question

ListView sorted column background color

  • avic

    Same way as on XP: LVM_SETSELECTEDCOLUMN. This isn't a new feature for Windows Vista.
  • Popoi

    Using LVM_SETBKCOLOR/ListView_SetBkColor will only change the color behind the icons.

    How does the ListView know which column is used for sorting I'm using LVM_SORTITEMS for sorting.

    Steffen


  • Horea Soanca

    Sorry for the supid questions.

    The Vista SDK has an "Whats new in Vista" page where all messages and flags are listed. Despite the fact that the documentation is missing for the new stuff, I can see what has changed. I can't find such page for XP...

    Steffen

  • Iain Reid

    The sort color is computed from the background color.
  • ListView sorted column background color