- wxFileDialog dialog(this, _T("Testing save file dialog"), "_T(", ")myletter.txt",
- _T("Text files (*.txt)|*.txt|Document files (*.doc)|*.doc"),
- wxSAVE|wxOVERWRITE_PROMPT);
+ wxFileDialog dialog(this,
+ _T("Testing save file dialog"),
+ _T(""),
+ _T("myletter.doc"),
+ _T("Text files (*.txt)|*.txt|Document files (*.doc)|*.doc"),
+ wxSAVE|wxOVERWRITE_PROMPT);
+
+ dialog.SetFilterIndex(1);