reversed disabling of deferred resizing in the last check in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,8 +28,6 @@ pages).}
|
|||||||
\twocolitem{msw.staticbitmap.htclient}{If set to 1, allows the static bitmap to respond to mouse
|
\twocolitem{msw.staticbitmap.htclient}{If set to 1, allows the static bitmap to respond to mouse
|
||||||
events. The default is 0, since a value of 1 can interfere with refresh in static boxes. Note that once set,
|
events. The default is 0, since a value of 1 can interfere with refresh in static boxes. Note that once set,
|
||||||
this option cannot be unset later in the application.}
|
this option cannot be unset later in the application.}
|
||||||
\twocolitem{msw.window.defersize}{If set to 1, optimizes window sizing and positioning when a size event is
|
|
||||||
received. This can occasionally have unwanted side-effects, so is off by default.}
|
|
||||||
\end{twocollist}
|
\end{twocollist}
|
||||||
|
|
||||||
\wxheading{Mac}
|
\wxheading{Mac}
|
||||||
|
@@ -1506,8 +1506,6 @@ void wxWindowMSW::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
|
|
||||||
HDWP hdwp = 0;
|
HDWP hdwp = 0;
|
||||||
|
|
||||||
if ( wxSystemOptions::GetOptionInt(wxT("msw.window.defersize")) == 1 )
|
|
||||||
{
|
|
||||||
// if our parent had prepared a defer window handle for us, use it (unless
|
// if our parent had prepared a defer window handle for us, use it (unless
|
||||||
// we are a top level window)
|
// we are a top level window)
|
||||||
wxWindowMSW *parent = GetParent();
|
wxWindowMSW *parent = GetParent();
|
||||||
@@ -1525,7 +1523,6 @@ void wxWindowMSW::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
// hdwp must be updated as it may have been changed
|
// hdwp must be updated as it may have been changed
|
||||||
parent->m_hDWP = (WXHANDLE)hdwp;
|
parent->m_hDWP = (WXHANDLE)hdwp;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// otherwise (or if deferring failed) move the window in place immediately
|
// otherwise (or if deferring failed) move the window in place immediately
|
||||||
if ( !hdwp )
|
if ( !hdwp )
|
||||||
@@ -4109,8 +4106,6 @@ bool wxWindowMSW::HandleSize(int WXUNUSED(w), int WXUNUSED(h), WXUINT wParam)
|
|||||||
// repositioned as well, prepare to use DeferWindowPos() for them
|
// repositioned as well, prepare to use DeferWindowPos() for them
|
||||||
const int numChildren = GetChildren().GetCount();
|
const int numChildren = GetChildren().GetCount();
|
||||||
if ( numChildren > 1 )
|
if ( numChildren > 1 )
|
||||||
{
|
|
||||||
if ( wxSystemOptions::GetOptionInt(wxT("msw.window.defersize")) == 1 )
|
|
||||||
{
|
{
|
||||||
m_hDWP = (WXHANDLE)::BeginDeferWindowPos(numChildren);
|
m_hDWP = (WXHANDLE)::BeginDeferWindowPos(numChildren);
|
||||||
if ( !m_hDWP )
|
if ( !m_hDWP )
|
||||||
@@ -4118,7 +4113,6 @@ bool wxWindowMSW::HandleSize(int WXUNUSED(w), int WXUNUSED(h), WXUINT wParam)
|
|||||||
wxLogLastError(_T("BeginDeferWindowPos"));
|
wxLogLastError(_T("BeginDeferWindowPos"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// update this window size
|
// update this window size
|
||||||
bool processed = false;
|
bool processed = false;
|
||||||
|
Reference in New Issue
Block a user