diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 55bc4b3f28..2e5e93aa53 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -383,7 +383,9 @@ bool MyApp::OnInit() myCanvas = new MyCanvas(frame); myCanvas->SetBackgroundColour(*wxWHITE); +#ifndef __WXWINCE__ frame->Centre(wxBOTH); +#endif // Show the frame frame->Show(true);