git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54938
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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;
}