1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/button.h
3 // Purpose: wxButton class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/control.h"
17 class WXDLLIMPEXP_CORE wxButton
: public wxButtonBase
21 inline wxButton( wxWindow
* pParent
23 ,const wxString
& rsLabel
= wxEmptyString
24 ,const wxPoint
& rPos
= wxDefaultPosition
25 ,const wxSize
& rSize
= wxDefaultSize
27 ,const wxValidator
& rValidator
= wxDefaultValidator
28 ,const wxString
& rsName
= wxButtonNameStr
42 bool Create( wxWindow
* pParent
44 ,const wxString
& rsLabel
= wxEmptyString
45 ,const wxPoint
& rPos
= wxDefaultPosition
46 ,const wxSize
& rSize
= wxDefaultSize
48 ,const wxValidator
& rValidator
= wxDefaultValidator
49 ,const wxString
& rsName
= wxButtonNameStr
54 virtual wxWindow
*SetDefault();
56 static wxSize
GetDefaultSize(void);
57 virtual void Command(wxCommandEvent
& rEvent
);
58 virtual bool OS2Command( WXUINT uParam
61 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
68 void MakeOwnerDrawn(void);
70 virtual MRESULT
WindowProc( WXUINT uMsg
77 bool SendClickEvent(void);
78 void SetTmpDefault(void);
79 void UnsetTmpDefault(void);
81 static void SetDefaultStyle( wxButton
* pButton
85 virtual wxSize
DoGetBestSize(void) const;
86 virtual WXDWORD
OS2GetStyle( long style
90 DECLARE_DYNAMIC_CLASS(wxButton
)
91 }; // end of CLASS wxButton