- PreCreation( parent, id, pos, newSize, style, name );
-
- SetValidator( validator );
+ m_marginX =
+ m_marginY = 0;
+
+ if (!PreCreation( parent, pos, size ) ||
+ !CreateBase( parent, id, pos, size, style, validator, name ))
+ {
+ wxFAIL_MSG( wxT("wxBitmapButton creation failed") );
+ return FALSE;
+ }