Page 1 of 1

Icon Handelrs (Save File Icon) ?

Posted: Thu May 14, 2020 7:04 pm
by CivilSigma
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

Re: Icon Handelrs (Save File Icon) ?

Posted: Thu May 14, 2020 7:31 pm
by doublemax
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.