From b3fcfa4d89d44425ed28050462c6064100fe7b05 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 7 Apr 2004 21:47:04 +0000 Subject: [PATCH] wxStaticBitmapBase::DoGetBestSize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/statbmp.h | 1 - include/wx/statbmp.h | 2 +- src/common/ctrlcmn.cpp | 2 +- src/msw/statbmp.cpp | 7 ------- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/wx/msw/statbmp.h b/include/wx/msw/statbmp.h index e778d2e373..49734fd443 100644 --- a/include/wx/msw/statbmp.h +++ b/include/wx/msw/statbmp.h @@ -78,7 +78,6 @@ public: protected: virtual wxBorder GetDefaultBorder() const; - virtual wxSize DoGetBestSize() const; virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; // ctor/dtor helpers diff --git a/include/wx/statbmp.h b/include/wx/statbmp.h index 02f5c7ef05..49bcf7fb93 100644 --- a/include/wx/statbmp.h +++ b/include/wx/statbmp.h @@ -44,7 +44,7 @@ public: virtual bool AcceptsFocus() const { return FALSE; } protected: - virtual wxSize DoGetBestClientSize() const; + virtual wxSize DoGetBestSize() const; DECLARE_NO_COPY_CLASS(wxStaticBitmapBase) }; diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index b46c4f8f8d..de49faed12 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -127,7 +127,7 @@ wxStaticBitmapBase::~wxStaticBitmapBase() // this destructor is required for Darwin } -wxSize wxStaticBitmapBase::DoGetBestClientSize() const +wxSize wxStaticBitmapBase::DoGetBestSize() const { wxBitmap bmp = GetBitmap(); if ( bmp.Ok() ) diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 1d6bfd0c7c..14adf39e01 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -201,13 +201,6 @@ void wxStaticBitmap::Free() m_image = NULL; } -wxSize wxStaticBitmap::DoGetBestSize() const -{ - // reuse the current size (as wxWindow does) instead of using some - // arbitrary default size (as wxControl, our immediate base class, does) - return wxWindow::DoGetBestSize(); -} - void wxStaticBitmap::SetImage( const wxGDIImage* image ) { wxGDIImage* convertedImage = ConvertImage( *image ); -- 2.45.2