X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a290fa5a7deebe9d96c0c0089d18e27d4bd9b624..3a4cf8a84d9a41c63125c1c1cdd6d0fbb98f41f0:/src/univ/statbmp.cpp diff --git a/src/univ/statbmp.cpp b/src/univ/statbmp.cpp index f305d9ff2d..d676a91718 100644 --- a/src/univ/statbmp.cpp +++ b/src/univ/statbmp.cpp @@ -1,10 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/statbmp.cpp +// Name: src/univ/statbmp.cpp // Purpose: wxStaticBitmap implementation // Author: Vadim Zeitlin // Modified by: // Created: 25.08.00 -// RCS-ID: $Id$ // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,10 +16,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "univstatbmp.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -29,10 +24,11 @@ #if wxUSE_STATBMP +#include "wx/statbmp.h" + #ifndef WX_PRECOMP #include "wx/dc.h" #include "wx/icon.h" - #include "wx/statbmp.h" #include "wx/validate.h" #endif @@ -43,8 +39,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) - // ---------------------------------------------------------------------------- // wxStaticBitmap // ---------------------------------------------------------------------------- @@ -64,7 +58,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, SetBitmap(label); // and adjust our size to fit it after this - SetBestSize(size); + SetInitialSize(size); return true; } @@ -109,4 +103,3 @@ void wxStaticBitmap::DoDraw(wxControlRenderer *renderer) } #endif // wxUSE_STATBMP -