#if USE_DEFERRED_SIZING
m_pendingPosition = wxPoint(x, y);
m_pendingSize = wxSize(width, height);
+ }
+ else // window was moved immediately, without deferring it
+ {
+ m_pendingPosition = wxDefaultPosition;
+ m_pendingSize = wxDefaultSize;
#endif // USE_DEFERRED_SIZING
}
}
bool wxWindowMSW::IsDoubleBuffered() const
{
- const wxWindowMSW *wnd = this;
- do
+ for ( const wxWindowMSW *win = this; win; win = win->GetParent() )
{
- if ( wxHasWindowExStyle(wnd, WS_EX_COMPOSITED) )
+ if ( wxHasWindowExStyle(win, WS_EX_COMPOSITED) )
return true;
- wnd = wnd->GetParent();
- } while ( wnd && !wnd->IsTopLevel() );
+
+ if ( win->IsTopLevel() )
+ break;
+ }
return false;
}