X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b728a2126992acadec19e440cd2382fd22fde17e..e69d5138dc8f95e294ae6d03beb4f321406f4e34:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 6908a7b317..7f55f0db5b 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1703,7 +1703,7 @@ void wxWindowMSW::DoGetPosition(int *x, int *y) const { if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) { - // In RTL mode, we want the logical left x-coordinate, + // In RTL mode, we want the logical left x-coordinate, // which would be the physical right x-coordinate. point.x = rect.right; } @@ -3950,6 +3950,19 @@ bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam), #endif } +bool wxWindowMSW::IsDoubleBuffered() const +{ + for ( const wxWindowMSW *wnd = this; + wnd && !wnd->IsTopLevel(); wnd = + wnd->GetParent() ) + { + if ( ::GetWindowLong(GetHwndOf(wnd), GWL_EXSTYLE) & WS_EX_COMPOSITED ) + return true; + } + + return false; +} + // --------------------------------------------------------------------------- // owner drawn stuff // ---------------------------------------------------------------------------