Don't always maximize top-level windows on Smartphone

Don't initially hide frame under Smartphone (sometimes causes the title not to show)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2005-04-06 21:15:17 +00:00
parent c9ab63f44f
commit dde4740fe1

View File

@ -447,10 +447,6 @@ bool wxTopLevelWindowMSW::CreateFrame(const wxString& title,
bool result = MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags); bool result = MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags);
#ifdef __SMARTPHONE__
// Work around title non-display glitch
Show(false);
#endif
return result; return result;
} }
@ -551,10 +547,7 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent,
// Note: if we include PocketPC in this test, dialogs can fail to show up, // 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()? // for example the text entry dialog in the dialogs sample. Problem with Maximise()?
#if defined(__WXWINCE__) && (defined(__SMARTPHONE__) || defined(__WINCE_STANDARDSDK__)) #if defined(__WXWINCE__) && (defined(__SMARTPHONE__) || defined(__WINCE_STANDARDSDK__))
// Smartphone dialogs should always be maximized.
#if !defined(__SMARTPHONE__)
if ( style & wxMAXIMIZE ) if ( style & wxMAXIMIZE )
#endif
{ {
this->Maximize(); this->Maximize();
} }