I’m having some trouble getting the native open/save file dialog to act exactly like a normal Win32 dialog. No matter what combination of commas, semicolons, \0’s, etc I put in the filename filter, I can’t get the Save As Type combobox to show multiple groups of file filters.
Here’s an example filter string that works with the Win32 OpenFileName API: “PNG(.png)\0.png\0JPEG(.jpg,.jpeg)\f*.jpg;*.jpeg\0\0”. With that string, I should get two possible selections in the combobox.
It seems pretty obvious that the problem is related to the null terminators that don’t actually terminate the string (thanks MS :roll:). My questions are the following:
What options do I have as far as a workaround?
Is there any possibility of adding a new filter string format for JUCE, which would automatically translate to the convoluted Windows format when filling the OPENFILENAME struct?