From: Vadim Zeitlin Date: Sun, 30 Jan 2005 15:45:37 +0000 (+0000) Subject: don't use WS_POPUP for frames using wxFRAME_TOOL_WINDOW style (patch 1107460) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0fcd3b92e3ef2cdb1fea2c7ef1938f832d5debbe 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 --- 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