I remember to not have that problem in wxWidgete 2.6.4 but i'm not sure about that.
I work on Windows Vista (bleah!), VC++ 2003 .NET, wxWidgets 2.8.10.
Any suggestion about some possible solution?
that's my code:
Code: Select all
wxFileDialog dialog(this, // i've tryed NULL and wxTheApp->GetTopWindow()
_T("Testing save file dialog"),
wxEmptyString,
_T("myletter.doc"),
_T("Text files (*.txt)|*.txt|Document files (*.doc)|*.doc"),
wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
dialog.SetFilterIndex(1);
if (dialog.ShowModal() == wxID_OK)
{
wxLogMessage(_T("%s, filter %d"),
dialog.GetPath().c_str(), dialog.GetFilterIndex());
}