]> git.saurik.com Git - wxWidgets.git/commitdiff
Revert r71595 for now, as the bug it fixed is the lesser of two evils with the potent...
authorRobin Dunn <robin@alldunn.com>
Sun, 8 Jul 2012 03:48:55 +0000 (03:48 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 8 Jul 2012 03:48:55 +0000 (03:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/statbox.h
src/msw/statbox.cpp

index 15b25cb4e2b1ba0ec159b65f02b4e8f41f25cb3f..27180f2c1eeba7d1b396dcffd8748b9cff83facd 100644 (file)
@@ -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;
 
index 3bd2e55081e680b35f9a9b8d79e77c114e89664e..6272f6396e9df19ffb750a1a50285468e0b45d53 100644 (file)
@@ -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