//SetWindowLong(GetHwnd(), 0, (long)this);
wxModelessWindows.Append(this);
+
+ // Necessary to make ResetWindowStyle() work
+ // and will be called eventually anyway
+ Activate();
+
+ // Without this, a maximized child will still
+ // a double border around the child
+ ResetWindowStyle((void *)NULL); // Set the Client ExStyle right
+
return TRUE;
}
// we want to test whether there is a maximized child, so just set
// dwThisStyle to 0 if there is no child at all
DWORD dwThisStyle = pChild
- ? ::GetWindowLong(GetWinHwnd(pChild), GWL_STYLE) : NULL;
+ ? ::GetWindowLong(GetWinHwnd(pChild), GWL_STYLE) : 0;
DWORD dwNewStyle = dwStyle;
if ( dwThisStyle & WS_MAXIMIZE )
dwNewStyle &= ~(WS_EX_CLIENTEDGE);