By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/en...background.asp

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.