class WXDLLEXPORT wxBitmapButton : public wxBitmapButtonBase
{
public:
- wxBitmapButton();
+ wxBitmapButton() { }
wxBitmapButton(wxWindow *parent,
wxWindowID id,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxButtonNameStr);
+ const wxString& name = wxButtonNameStr)
+ {
+ Create(parent, id, bitmap, pos, size, style, validator, name);
+ }
bool Create(wxWindow *parent,
wxWindowID id,
wxBitmapButtonBase::SetMargins(x, y);
}
- virtual bool Enable(bool enable = TRUE);
+ virtual bool Enable(bool enable = true);
- virtual bool SetCurrent(bool doit = TRUE);
+ virtual bool SetCurrent(bool doit = true);
virtual void Press();
virtual void Release();
virtual void OnSetBitmap();
// set bitmap to the given one if it's ok or to m_bmpNormal and return
- // TRUE if the bitmap really changed
+ // true if the bitmap really changed
bool ChangeBitmap(const wxBitmap& bmp);
private: