]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
getting rid of warnings
[wxWidgets.git] / src / msw / window.cpp
index 6908a7b317e5c7e22eb586056ac1cb7c160ac339..bd7a853adf3b93f78087cf87a641d6323c8aa3e2 100644 (file)
@@ -3950,6 +3950,19 @@ bool wxWindowMSW::HandlePower(WXWPARAM WXUNUSED_IN_WINCE(wParam),
 #endif
 }
 
+bool wxWindowMSW::IsDoubleBuffered() const
+{
+    for ( const wxWindow *wnd = this;
+          wnd && !wnd->IsTopLevel(); wnd =
+          wnd->GetParent() )
+    {
+        if ( ::GetWindowLong(GetHwndOf(wnd), GWL_EXSTYLE) & WS_EX_COMPOSITED )
+            return true;
+    }
+
+    return false;
+}
+
 // ---------------------------------------------------------------------------
 // owner drawn stuff
 // ---------------------------------------------------------------------------