473,654 Members | 3,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
1 1883
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 DrawThemeBackgr ound function and specify part
HP_HEADERSORTAR ROW 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
810
by: joseph.inglis | last post by:
Hi group, Someones gonna answer this in two seconds flat but im tearing my hair out. Create a form, add a listview, add 5 items and programmatically select item at index 3. this.imageList.Items.EnsureVisible(); this.imageList.Items.Selected = true; That works fine. Use the mouse to select index 4 and again, works sweetly.
5
2311
by: SStory | last post by:
Hi all, I really needed to get the icons associated with each file that I want to show in a listview. I used the follow modified code sniplets found on the internet. I have left in commented code for anyone else who may be looking to do the same.
1
1238
by: jrhoads23 | last post by:
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...
0
1332
by: Tuyen Pham via DotNetMonster.com | last post by:
The problem is: System.InvalidOperationException: The image could not be added to the ImageList. at System.Windows.Forms.ImageList.AddToHandle(Original original, Bitmap bitmap) at System.Windows.Forms.ImageList.CreateHandle() at System.Windows.Forms.ImageList.get_Handle() at System.Windows.Forms.ListView.set_LargeImageList(ImageList value) ----------****************************************------------ I write application for loading...
2
4261
by: GT | last post by:
Could someone please explain how to add images to a ListView other than in the first column?
1
4635
by: Steve | last post by:
OK, I am stumped. I cannot for the life of me get images to show in ListView items while the view is set to Details. I create an ImageList, set the SmallImageList to point to the ImageList, then in my code I do the following to add items to the ListView. lvi = New ListViewItem With lvi .Text = "xxxxx" .SubItems.Add("yyyy") .ImageIndex = 1
11
9985
by: Alan T | last post by:
Does the ListView supports sort? I want to have a up/down arrow/triangle that show it is sorted asc or desc on the column headers when I click the column header. May be I need a third-party components ?
4
14472
by: Archimed | last post by:
Hi, I try to use an ImageList with a ListView but that don't work. I make a ListView in VirtualMode with LargeIcon view. I put the ImageList in the LargeImageList property. I add a bitmap to the ImageList When i want to see the item "icon" with the imagelist imageindex
8
5775
by: Lord Zoltar | last post by:
Hi, I've got a list view that displays a series of images. I'd like to be able to draw a divider across the list view to divide the images into groups. Ideally, I'd have a group name, with a line underneath it that spans the ListView. How could this be done? I tried using an image as the divider, but it forced the divider image to be the same size as the image size used for the ImageList that stores the images for the ListView.
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.