- PreCreation( parent, -1, pos, wxDefaultSize, style | wxDIALOG_MODAL, "filedialog" );
+ if (!PreCreation( parent, pos, wxDefaultSize ) ||
+ !CreateBase( parent, -1, pos, wxDefaultSize, style | wxDIALOG_MODAL, wxDefaultValidator, wxT("filedialog") ))
+ {
+ wxFAIL_MSG( wxT("wxXX creation failed") );
+ return;
+ }
+