From 0fcd3b92e3ef2cdb1fea2c7ef1938f832d5debbe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Jan 2005 15:45:37 +0000 Subject: [PATCH] don't use WS_POPUP for frames using wxFRAME_TOOL_WINDOW style (patch 1107460) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index a600836ce6..6cd98fe487 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -166,13 +166,9 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const // first select the kind of window being created // // note that if we don't set WS_POPUP, Windows assumes WS_OVERLAPPED and - // creates a window with both caption and border, hence we also test it - // below in some other cases - if ( style & wxFRAME_TOOL_WINDOW ) - { - msflags |= WS_POPUP; - } - //else: WS_OVERLAPPED is 0 anyhow, so it is on by default + // creates a window with both caption and border, hence we need to use + // WS_POPUP in a few cases just to avoid having caption/border which we + // don't want #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__)) // border and caption styles -- 2.45.2