class WXDLLIMPEXP_CORE wxButton : public wxButtonBase
{
public:
- wxButton() { }
+ wxButton() { m_imageData = NULL; }
wxButton(wxWindow *parent,
wxWindowID id,
const wxString& label = wxEmptyString,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
+ m_imageData = NULL;
+
Create(parent, id, label, pos, size, style, validator, name);
}
// usually overridden base class virtuals
virtual wxSize DoGetBestSize() const;
+ virtual wxBitmap DoGetBitmap(State which) const;
+ virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
+ virtual wxSize DoGetBitmapMargins() const;
+ virtual void DoSetBitmapMargins(wxCoord x, wxCoord y);
+ virtual void DoSetBitmapPosition(wxDirection dir);
+
+ class wxButtonImageData *m_imageData;
+
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxButton)
};