#pragma implementation "statbmp.h"
#endif
+#include "wx/defs.h"
+
#include "wx/statbmp.h"
#ifdef __VMS__
#include "wx/motif/private.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
-#endif
/*
* wxStaticBitmap
ChangeFont(FALSE);
SetCanAddEventHandler(TRUE);
- AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
+
+ wxSize actualSize(size);
+ if (actualSize.x == -1)
+ actualSize.x = bitmap.GetWidth();
+ if (actualSize.y == -1)
+ actualSize.y = bitmap.GetHeight();
+ AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, actualSize.x, actualSize.y);
ChangeBackgroundColour ();