From e60fbfcb6bc2e54e86b2fefaee3095efb31f1b7e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 6 Apr 2005 08:34:29 +0000 Subject: [PATCH] Always Maximize() top-level windows on Smartphone. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index ac97ecbbef..374c929e26 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -548,11 +548,13 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent, ); } - // Native look is full screen window on Smartphones and Standard SDK. - // TODO: check that we need this (if we're passing default values to ctor). - // Also check that there really is a difference between PocketPC and Smartphone in this regard. + // Note: if we include PocketPC in this test, dialogs can fail to show up, + // for example the text entry dialog in the dialogs sample. Problem with Maximise()? #if defined(__WXWINCE__) && (defined(__SMARTPHONE__) || defined(__WINCE_STANDARDSDK__)) + // Smartphone dialogs should always be maximized. +#if !defined(__SMARTPHONE__) if ( style & wxMAXIMIZE ) +#endif { this->Maximize(); } -- 2.45.2