void wxPanel::Init()
{
WX_INIT_CONTROL_CONTAINER();
-
-#ifdef __WXMSW__
- m_isTransparent = false;
-#endif // __WXMSW__
}
bool wxPanel::Create(wxWindow *parent, wxWindowID id,
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__