diff --git a/include/wx/msw/nonownedwnd.h b/include/wx/msw/nonownedwnd.h index a3f8aa4274..f19e5d1259 100644 --- a/include/wx/msw/nonownedwnd.h +++ b/include/wx/msw/nonownedwnd.h @@ -22,6 +22,8 @@ public: wxNonOwnedWindow(); virtual ~wxNonOwnedWindow(); + virtual void InheritAttributes() wxOVERRIDE; + protected: virtual bool DoClearShape() wxOVERRIDE; virtual bool DoSetRegionShape(const wxRegion& region) wxOVERRIDE; @@ -30,7 +32,6 @@ protected: #endif // wxUSE_GRAPHICS_CONTEXT virtual WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) wxOVERRIDE; - virtual void InheritAttributes() wxOVERRIDE; private: bool HandleDPIChange(const wxSize& newDPI, const wxRect& newRect);