test centering file dialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-08-28 13:27:33 +00:00
parent f0cf38b706
commit 3b6c3fc8c5

View File

@ -682,6 +682,7 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
); );
dialog.SetDirectory(wxGetHomeDir()); dialog.SetDirectory(wxGetHomeDir());
dialog.CentreOnParent();
if (dialog.ShowModal() == wxID_OK) if (dialog.ShowModal() == wxID_OK)
{ {