- m_macIsUserPane = false;
-
- // since bitmapbuttonbase is subclass of button calling wxBitmapButtonBase::Create
- // essentially creates an additional button
- if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) )
+ DontCreatePeer();
+
+ if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style,
+ validator, name) )