/////////////////////////////////////////////////////////////////////////////
-// Name: univ/statbmp.cpp
+// Name: src/univ/statbmp.cpp
// Purpose: wxStaticBitmap implementation
// Author: Vadim Zeitlin
// Modified by:
#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
// implementation
// ============================================================================
-IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
-
// ----------------------------------------------------------------------------
// wxStaticBitmap
// ----------------------------------------------------------------------------
SetBitmap(label);
// and adjust our size to fit it after this
- SetBestSize(size);
+ SetInitialSize(size);
return true;
}
}
#endif // wxUSE_STATBMP
-