propgate WS_EX_CONTROLPARENT recursively upwards, not just to the immediate parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5968a0dcd9
commit
5624b2a1cf
@ -3191,7 +3191,7 @@ bool wxWindowMSW::HandleCreate(WXLPCREATESTRUCT cs, bool *mayCreate)
|
||||
{
|
||||
// there is no need to do anything for the top level windows
|
||||
const wxWindow *parent = GetParent();
|
||||
if ( parent && !parent->IsTopLevel() )
|
||||
while ( parent && !parent->IsTopLevel() )
|
||||
{
|
||||
LONG exStyle = ::GetWindowLong(GetHwndOf(parent), GWL_EXSTYLE);
|
||||
if ( !(exStyle & WS_EX_CONTROLPARENT) )
|
||||
@ -3200,6 +3200,8 @@ bool wxWindowMSW::HandleCreate(WXLPCREATESTRUCT cs, bool *mayCreate)
|
||||
::SetWindowLong(GetHwndOf(parent), GWL_EXSTYLE,
|
||||
exStyle | WS_EX_CONTROLPARENT);
|
||||
}
|
||||
|
||||
parent = parent->GetParent();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user