diff --git a/include/wx/msw/statbox.h b/include/wx/msw/statbox.h index 15b25cb4e2..27180f2c1e 100644 --- a/include/wx/msw/statbox.h +++ b/include/wx/msw/statbox.h @@ -43,10 +43,6 @@ public: // returns true if the platform should explicitly apply a theme border virtual bool CanApplyThemeBorder() const { return false; } - virtual wxPoint GetClientAreaOrigin() const; - virtual void DoGetClientSize(int *width, int *height) const; - - protected: virtual wxSize DoGetBestSize() const; diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 3bd2e55081..6272f6396e 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -543,26 +543,4 @@ void wxStaticBox::OnPaint(wxPaintEvent& WXUNUSED(event)) #endif // !__WXWINCE__ - -wxPoint wxStaticBox::GetClientAreaOrigin() const -{ - // See: http://msdn.microsoft.com/en-us/library/aa511279.aspx - wxPoint pt = ConvertDialogToPixels(wxPoint(6,11)); - return pt; -} - - -void wxStaticBox::DoGetClientSize(int *width, int *height) const -{ - // See: http://msdn.microsoft.com/en-us/library/aa511279.aspx - wxPoint lr = ConvertDialogToPixels(wxPoint(6,7)); - wxPoint ul = GetClientAreaOrigin(); - wxSize sz = GetSize(); - - if (width) - *width = sz.x - ul.x - lr.x; - if (height) - *height = sz.y - ul.y - lr.x; -} - #endif // wxUSE_STATBOX