if (m_bmpNormal.Ok())
{
- wxSize newSize = size;
- wxSize bestSize = DoGetBestSize();
- if (newSize.x == -1)
- newSize.x = bestSize.x;
- if (newSize.y == -1)
- newSize.y = bestSize.y;
- SetSize( newSize.x, newSize.y );
OnSetBitmap();
}
m_parent->DoAddChild( this );
- PostCreation();
- InheritAttributes();
-
- Show( TRUE );
+ PostCreation(size);
return TRUE;
}