Icon Handelrs (Save File Icon) ?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
In need of some credit
In need of some credit
Posts: 2
Joined: Mon May 04, 2020 6:50 am

Icon Handelrs (Save File Icon) ?

Post by CivilSigma » Thu May 14, 2020 7:04 pm

In my program I use wxFileDialog to select where I will be saving, and to specify the extension of the save file, and wxFile to work with actual save content using the I/O functions.

Once the file is saved, I would like it to have a custom thumbnail and when clicked open the .exe of my application. I did a google search and came across "https://docs.microsoft.com/en-us/window ... l/handlers" which I think is how to go about achieving this.

But I was wondering if there was something similar implemented in wxWidgets?

Thank you in advance

User avatar
Posts: 14992
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Icon Handelrs (Save File Icon) ?

Post by doublemax » Thu May 14, 2020 7:31 pm

Try wxMimeTypesManager::Associate
https://docs.wxwidgets.org/trunk/classw ... 287356d0d8

I've never used it myself and AFAIK there is no sample showing how to use it, so you may have to experiment a little.
Use the source, Luke!

Post Reply