1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/button.h
3 // Purpose: wxButton class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
18 class WXDLLIMPEXP_CORE wxButton
: public wxButtonBase
22 inline wxButton( wxWindow
* pParent
24 ,const wxString
& rsLabel
= wxEmptyString
25 ,const wxPoint
& rPos
= wxDefaultPosition
26 ,const wxSize
& rSize
= wxDefaultSize
28 ,const wxValidator
& rValidator
= wxDefaultValidator
29 ,const wxString
& rsName
= wxButtonNameStr
43 bool Create( wxWindow
* pParent
45 ,const wxString
& rsLabel
= wxEmptyString
46 ,const wxPoint
& rPos
= wxDefaultPosition
47 ,const wxSize
& rSize
= wxDefaultSize
49 ,const wxValidator
& rValidator
= wxDefaultValidator
50 ,const wxString
& rsName
= wxButtonNameStr
55 virtual wxWindow
*SetDefault();
57 static wxSize
GetDefaultSize(void);
58 virtual void Command(wxCommandEvent
& rEvent
);
59 virtual bool OS2Command( WXUINT uParam
62 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
69 void MakeOwnerDrawn(void);
71 virtual MRESULT
WindowProc( WXUINT uMsg
78 bool SendClickEvent(void);
79 void SetTmpDefault(void);
80 void UnsetTmpDefault(void);
82 static void SetDefaultStyle( wxButton
* pButton
86 virtual wxSize
DoGetBestSize(void) const;
87 virtual WXDWORD
OS2GetStyle( long style
91 DECLARE_DYNAMIC_CLASS(wxButton
)
92 }; // end of CLASS wxButton