From: Vadim Zeitlin Date: Fri, 7 May 2004 22:15:04 +0000 (+0000) Subject: don't add WS_VISIBLE to all windows style (replaces patch 948992) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af4954790b3112269c944834606be9da1a309e09 don't add WS_VISIBLE to all windows style (replaces patch 948992) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 48b20868d0..b3f509f27c 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1116,8 +1116,11 @@ void wxWindowMSW::SetWindowStyleFlag(long flags) WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const { - // translate the style - WXDWORD style = WS_CHILD | WS_VISIBLE; + // translate common wxWindows styles to Windows ones + + // most of windows are child ones, those which are not (such as + // wxTopLevelWindow) should remove WS_CHILD in their MSWGetStyle() + WXDWORD style = WS_CHILD; if ( flags & wxCLIP_CHILDREN ) style |= WS_CLIPCHILDREN;