Always Maximize() top-level windows on Smartphone.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2005-04-06 08:34:29 +00:00
parent 21bd196564
commit e60fbfcb6b

View File

@ -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();
}