}
#endif // wxUSE_GRAPHICS_CONTEXT
+
+ // Overridden base class methods.
+ // ------------------------------
+
+ virtual void AdjustForParentClientOrigin(int& WXUNUSED(x), int& WXUNUSED(y),
+ int WXUNUSED(sizeFlags) = 0) const
+ {
+ // Non owned windows positions don't need to be adjusted for parent
+ // client area origin so simply do nothing here.
+ }
+
+ virtual void InheritAttributes()
+ {
+ // Non owned windows don't inherit attributes from their parent window
+ // (if the parent frame is red, it doesn't mean that all dialogs shown
+ // by it should be red as well), so don't do anything here neither.
+ }
+
protected:
virtual bool DoClearShape()
{
#if defined(__WXDFB__)
#include "wx/dfb/nonownedwnd.h"
-#elif defined(__WXGTK__)
+#elif defined(__WXGTK20__)
#include "wx/gtk/nonownedwnd.h"
#elif defined(__WXMAC__)
#include "wx/osx/nonownedwnd.h"