+ if ( (style & wxSAVE) && ( style & wxOVERWRITE_PROMPT ) )
+ {
+ if (wxFileExists( filename ))
+ {
+ wxString msg;
+ msg.Printf( _("File '%s' already exists, do you really want to "
+ "overwrite it?"), filename);
+
+ if (wxMessageBox(msg, _("Confirm"), wxYES_NO) != wxYES)
+ return;
+ }
+ }
+ else if ( (style & wxOPEN) && ( style & wxFILE_MUST_EXIST) )