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:
parent
b577ba22cb
commit
50c679c81a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user