#endif
#include "wx/statbmp.h"
-#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcclient.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
m_foregroundColour = parent->GetForegroundColour() ;
m_bitmap = bitmap;
- if ( id == -1 )
+ if ( id == wxID_ANY )
m_windowId = (int)NewControlId();
else
m_windowId = id;
m_windowStyle = style;
bool ret = wxControl::Create( parent, id, pos, size, style , wxDefaultValidator , name );
- SetBestSize( size ) ;
+ SetInitialSize( size ) ;
return ret;
}