dlg now centered

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-08 22:29:38 +00:00
parent b577ba22cb
commit 50c679c81a

View File

@ -51,6 +51,7 @@ bool MyApp::OnInit()
dlg.SetAutoLayout(TRUE);
dlg.SetSizer(sizer);
sizer->Fit(&dlg);
dlg.Centre();
dlg.ShowModal();
@ -60,5 +61,5 @@ bool MyApp::OnInit()
res << ar[i] << _T("\n");
wxMessageBox(res);
return TRUE;
return FALSE;
}