git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6780
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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;
{
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 )