+ // FIXME: this should be made to work: we need to detect that the window
+ // is not visible and in that case, a) ignore any drawing actions
+ // and b) provide dummy surface that can still be used to get
+ // information (e.g. text extents):
+ wxWindow *w = win;
+ for ( wxWindow *w = win; w; w = w->GetParent() )
+ {
+ // painting on hidden TLW when non-TLW windows are shown is OK,
+ // DirectFB manages that:
+ if ( w->IsTopLevel() )
+ break;
+
+ wxASSERT_MSG( w->IsShown(),
+ _T("painting on hidden window not implemented yet") );
+ }
+
+