473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Retrieve Icons Associated To An Extension?

Hello NG,

I have searched everyweher, and I am not able to find a solution...
basically, I am constructing a GUI with wxPython, in which I have a list.
In this list control, I have some file. I would like to associate (to every
file) its icon (on Windows). I have searched about the use of Mark
Hammond's win32all extensions and also ctypes, but I didn't find a
solution. Could anyone please provide a very simple example on how to
retrieve an icon associated to a file extension on Windows?

Thank you a lot.

Andrea.
------------------------------------------------------------------------------------------------------------------------------------------
Message for the recipient only, if received in error, please notify the
sender and read http://www.eni.it/disclaimer/
Jul 18 '05 #1
1 1878
an***********@agip.it wrote:
Hello NG,

I have searched everyweher, and I am not able to find a solution...
basically, I am constructing a GUI with wxPython, in which I have a list.
In this list control, I have some file. I would like to associate (to every
file) its icon (on Windows). I have searched about the use of Mark
Hammond's win32all extensions and also ctypes, but I didn't find a
solution. Could anyone please provide a very simple example on how to
retrieve an icon associated to a file extension on Windows?


Check out MimeTypesManager in the wxPython demo app (under More
Windows/Controls). That seems to do what you want..

Will McGugan
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Garet Cammer | last post by:
I am writing a VB 6.0 program similar to Windows Explorer, which has a tree view and a list view to select directories and files. I would like to associate an icon with each file, according to the...
1
by: Jakob Bengtsson | last post by:
Hi, Does anyone know how to get the icons for all filetypes installed on the system? I can extract the associated icon from a file, but I don't know how to: 1) Get a list of filetypes; 2) Get...
2
by: Matthias S. | last post by:
Hi, I need to find the Icons associated with a given file extension. I guess there are registry entries for that. Is there a generic way of getting them? Thanks a lot in advance, Matthias
1
by: Víctor | last post by:
I'm doing a kind of file explorer with some additional funcionalities. The problem is that I'm not able to draw file extension icons in a ListView. I know how obtain icons, but when I try to draw...
7
by: Shane Story | last post by:
I want to be able to get the icon associated with a certain file extension. I can read the registry hkey_classes to get the ext. then look to the other key for default icon. How can I then...
6
by: B-Dog | last post by:
Does anyone know where I can find some professional looking icons that are the standard windows collection for developers? The ones that came on the VS cd are pretty lame. Thanks
1
by: Progalex | last post by:
Hi guys.. How can I obtain the associated icon for each file extension registered on my machine via Visual Basic 2005 code? Many thanks.. Alessandro
2
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a...
1
by: Jon Slaughter | last post by:
I'm trying to create a windows explorer like app and the problem I'm having is getting the proper icon for the folders and items. In windows explorer there are many different icons and most seem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.