bool ret = wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name );
- SetBestSize( size ) ;
+ SetInitialSize( size ) ;
return ret;
}
wxPaintDC dc( this );
PrepareDC( dc );
- dc.BeginDrawing();
wxSize sz = GetSize();
wxSize bmpsz( Bitmap.GetWidth(), Bitmap.GetHeight() );
}
else
dc.DrawBitmap( Bitmap, pos.x, pos.y );
-
- dc.EndDrawing();
}