#ifndef WX_PRECOMP
#include "wx/window.h"
+ #include "wx/nonownedwnd.h"
#endif
#include "wx/dfb/private.h"
// coordinates; this will remove parts of 'r' that are outside of the
// parent's area:
wxRect rp(GetUncoveredWindowArea(parent));
+
+ // normal windows cannot extend out of its parent's client area:
+ if ( !win->CanBeOutsideClientArea() )
+ rp.Intersect(parent->GetClientRect());
+
rp.Offset(-win->GetPosition());
rp.Offset(-parent->GetClientAreaOrigin());
r.Intersect(rp);
r.x, r.y, r.GetRight(), r.GetBottom(),
origin.x, origin.y);
- Init(surface);
+ DFBInit(surface);
SetFont(win->GetFont());
// offset coordinates to account for subsurface's origin coordinates: