bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id,
const wxBitmap& bitmap,
const wxPoint& pos,
- const wxSize& size,
+ const wxSize& s,
long style,
const wxString& name)
{
SetName(name);
+ wxSize size = s ;
m_backgroundColour = parent->GetBackgroundColour() ;
m_foregroundColour = parent->GetForegroundColour() ;
m_windowStyle = style;
- bool ret = wxControl::Create( parent, id, pos, size, style , name );
+ bool ret = wxControl::Create( parent, id, pos, size, style , wxDefaultValidator , name );
+ SetSizeOrDefault( size ) ;
- SetSizeOrDefault() ;
-
return ret;
}