]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
a30ccc2d | 2 | // Name: wx/msw/bmpbuttn.h |
2bda0e17 KB |
3 | // Purpose: wxBitmapButton class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
bbcdf8bc | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
2bda0e17 KB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
bbcdf8bc JS |
11 | #ifndef _WX_BMPBUTTN_H_ |
12 | #define _WX_BMPBUTTN_H_ | |
2bda0e17 | 13 | |
2bda0e17 | 14 | #include "wx/button.h" |
1e7215e6 | 15 | #include "wx/bitmap.h" |
a6c255cb | 16 | #include "wx/brush.h" |
2bda0e17 | 17 | |
53a2db12 | 18 | class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase |
2bda0e17 | 19 | { |
0655ad29 | 20 | public: |
b4354db1 | 21 | wxBitmapButton() {} |
a30ccc2d | 22 | |
1e6feb95 VZ |
23 | wxBitmapButton(wxWindow *parent, |
24 | wxWindowID id, | |
25 | const wxBitmap& bitmap, | |
26 | const wxPoint& pos = wxDefaultPosition, | |
27 | const wxSize& size = wxDefaultSize, | |
28 | long style = wxBU_AUTODRAW, | |
29 | const wxValidator& validator = wxDefaultValidator, | |
30 | const wxString& name = wxButtonNameStr) | |
0655ad29 VZ |
31 | { |
32 | Create(parent, id, bitmap, pos, size, style, validator, name); | |
33 | } | |
34 | ||
1e6feb95 VZ |
35 | bool Create(wxWindow *parent, |
36 | wxWindowID id, | |
37 | const wxBitmap& bitmap, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxBU_AUTODRAW, | |
41 | const wxValidator& validator = wxDefaultValidator, | |
42 | const wxString& name = wxButtonNameStr); | |
2bda0e17 | 43 | |
c046274e | 44 | protected: |
a6fd0fde | 45 | DECLARE_EVENT_TABLE() |
fc7a2a60 | 46 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton) |
2bda0e17 KB |
47 | }; |
48 | ||
1fdc16ad | 49 | #endif // _WX_BMPBUTTN_H_ |