Vista ListView Header Sort Arrow

explorer shows in the header control of the listview an 'arrow' in the middle of the sorted column. (the smaller line is broken in the middle).

How can I do this too? I can sort the items, but which flag controls how the header control should display the column header?

Steffen

[283 byte] By [TheSZ] at [2008-1-13]
# 1
Same way you do it on Windows XP: HDF_SORTUP / HDF_SORTDOWN. Make sure you have a v6 manifest.
RaymondChen-MSFT at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...
# 2
TNX! Will check
TheSZ at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...
# 3
Do you have also an answer to my "Vista ListView Focus/Selection style" question?
TheSZ at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...
# 4
In Vista 5219: (Beta 1 was ok)
setting HDF_SORTDOWN/UP is working. But if I remove this flag, the iImage icon will be used. I DON'T have set HDF_IMAGE. If I call Header_GetItem this flag is set. I'm calling 'Header_SetImageList(hwndHeader,hImageListHeader);' because for older windows versions I'm using an picture.

So I have the correct HDF_SORTDOWN/UP or I have the header image list picture. I can't have no icon nor arrow.

BTW: I'm using ApplicationManifest.

Steffen

TheSZ at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,UI Development for Windows Vista...

Software Development for Windows Vista

Site Classified