- dc.SetPalette( *m_messageBitmap.GetPalette() ) ;
- dc.DrawBitmap( m_messageBitmap , 0 , 0 ) ;
+
+ if (m_bitmap.Ok())
+ {
+ dc.DrawBitmap( m_bitmap , 0 , 0 , TRUE ) ;
+ }
+}
+
+wxSize wxStaticBitmap::DoGetBestSize() const
+{
+ if ( m_bitmap.Ok() )
+ return DoGetSizeFromClientSize( wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight()) );
+
+ // this is completely arbitrary
+ return DoGetSizeFromClientSize( wxSize(16, 16) );