X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a81a1955569a7771eea422f5fa05f545c4f800d0..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/nonownedwnd.h?ds=sidebyside diff --git a/include/wx/nonownedwnd.h b/include/wx/nonownedwnd.h index a959b3472c..696edb5e9b 100644 --- a/include/wx/nonownedwnd.h +++ b/include/wx/nonownedwnd.h @@ -58,6 +58,24 @@ public: } #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() {