fix to allow negative coords for wxFrame creation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-04-19 11:14:48 +00:00
parent a9f21e71d6
commit 655076c7b0

View File

@@ -2360,10 +2360,14 @@ bool wxWindow::MSWCreate(int id,
height1 = parent_rect.bottom - parent_rect.top;
}
if ( x > -1 ) x1 = x;
if ( y > -1 ) y1 = y;
if ( width > -1 ) width1 = width;
if ( height > -1 ) height1 = height;
if ( x != -1 )
x1 = x;
if ( y != -1 )
y1 = y;
if ( width != -1 )
width1 = width;
if ( height != -1 )
height1 = height;
// unfortunately, setting WS_EX_CONTROLPARENT only for some windows in the
// hierarchy with several embedded panels (and not all of them) causes the