]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
No changes, just refactor common code in wxImage cloning functions.
[wxWidgets.git] / src / generic / panelg.cpp
index 3bff49d8d709497c2e080076093fe53dd74b827f..32e656f94e3c6f431b47c058c8e5e7f636511df6 100644 (file)
@@ -137,3 +137,20 @@ void wxPanel::InitDialog()
     GetEventHandler()->ProcessEvent(event);
 }
 
+#ifdef __WXMSW__
+
+bool wxPanel::HasTransparentBackground()
+{
+    for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
+    {
+        if ( win->MSWHasInheritableBackground() )
+            return true;
+
+        if ( win->IsTopLevel() )
+            break;
+    }
+
+    return false;
+}
+
+#endif // __WXMSW__