- m_buttonBitmap = bitmap;
- m_buttonBitmapOriginal = bitmap;
- m_buttonBitmapSelected = bitmap;
- m_buttonBitmapSelectedOriginal = bitmap;
-
- SetName(name);
- SetValidator(validator);
- parent->AddChild(this);
+ if( !CreateControl( parent, id, pos, size, style, validator, name ) )
+ return false;
+ PreCreation();