Is there an API call to get the system's ListView sort arrows imagelist?

  • Thread starter Thread starter jrhoads23
  • Start date Start date
J

jrhoads23

Hello,
I subclassed my own ListView which supports column sorting. It
automatically draws the up/down sort arrows in the column header. The
arrows that are used are drawn by me. I noticed that Windows XP systems
uses different sort arrows than Windows 2000 and earlier systems. (open
Windows Explorer and check them out on the two differnt O/S)
I would like my ListView to use the same arrows as the operating system
uses. Is there an API call (or any other way) to get the sort arrows
imagelist used by the operating system?

Thanks
Jeff
 
I noticed that Windows XP systems
uses different sort arrows than Windows 2000 and earlier systems. (open
Windows Explorer and check them out on the two differnt O/S)

I assume you mean the themed look, which can vary depending on which
theme the user has selected.

Is there an API call (or any other way) to get the sort arrows
imagelist used by the operating system?

You can use the DrawThemeBackground function and specify part
HP_HEADERSORTARROW to draw it. But to get it into an ImageList is a
bit more challenging.

http://msdn.microsoft.com/library/e...ctls/userex/functions/drawthemebackground.asp



Mattias
 
Back
Top