From 9cce2fe26c25ba4c16e61a2a8447667c7ee3e98b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 2 Apr 2005 21:42:42 +0000 Subject: [PATCH] Border fixes for WinCE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index f5ae3f72e8..ac97ecbbef 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -181,8 +181,10 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const *exflags |= WS_EX_DLGMODALFRAME; else if ( !(style & wxBORDER_NONE) ) msflags |= WS_BORDER; +#ifndef __POCKETPC__ else msflags |= WS_POPUP; +#endif #endif // normally we consider that all windows without a caption must be popups, @@ -508,9 +510,11 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent, // all dialogs are popups dlgTemplate->style |= WS_POPUP; +#ifndef __WXWINCE__ // force 3D-look if necessary, it looks impossibly ugly otherwise if ( style & (wxRESIZE_BORDER | wxCAPTION) ) dlgTemplate->style |= DS_MODALFRAME; +#endif ret = CreateDialog(dlgTemplate, title, pos, sizeReal); free(dlgTemplate);