X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..4b5d2be39657bb364c9111c4d13b1eecb8f3b69f:/src/univ/statbmp.cpp?ds=sidebyside diff --git a/src/univ/statbmp.cpp b/src/univ/statbmp.cpp index 32bb836f7d..6059a8ab2e 100644 --- a/src/univ/statbmp.cpp +++ b/src/univ/statbmp.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/statbmp.cpp +// Name: src/univ/statbmp.cpp // Purpose: wxStaticBitmap implementation // Author: Vadim Zeitlin // Modified by: @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "univstatbmp.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -29,10 +25,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 @@ -58,15 +55,15 @@ bool wxStaticBitmap::Create(wxWindow *parent, const wxString &name) { if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) - return FALSE; + return false; // set bitmap first SetBitmap(label); // and adjust our size to fit it after this - SetBestSize(size); + SetInitialSize(size); - return TRUE; + return true; } // ---------------------------------------------------------------------------- @@ -109,4 +106,3 @@ void wxStaticBitmap::DoDraw(wxControlRenderer *renderer) } #endif // wxUSE_STATBMP -