From 6fb8177afd0666f8e8023de02d6f88310e51c930 Mon Sep 17 00:00:00 2001 From: "Unknown (MT)" Date: Fri, 17 Mar 2000 08:10:09 +0000 Subject: [PATCH] added WS_CLIPSIBLINGS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 33b7de5dcd..ab88ef0080 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -302,7 +302,7 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID id, if ( style & wxTHICK_FRAME ) msflags |= WS_THICKFRAME; - msflags |= WS_CHILD | WS_VISIBLE; + msflags |= WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE; if ( style & wxCLIP_CHILDREN ) msflags |= WS_CLIPCHILDREN; @@ -2354,7 +2354,11 @@ bool wxWindow::MSWCreate(int id, { int controlId = 0; if ( style & WS_CHILD ) + { controlId = id; + // all child windows should clip their siblings + style |= WS_CLIPSIBLINGS; + } wxString className(wclass); if ( GetWindowStyleFlag() & wxNO_FULL_REPAINT_ON_RESIZE ) -- 2.47.2