]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/button.h
1 /////////////////////////////////////////////////////////////////////////////
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 WXDLLEXPORT wxButton
: public wxButtonBase
22 inline wxButton( wxWindow
* pParent
24 ,const wxString
& rsLabel
25 ,const wxPoint
& rPos
= wxDefaultPosition
26 ,const wxSize
& rSize
= wxDefaultSize
29 ,const wxValidator
& rValidator
= wxDefaultValidator
31 ,const wxString
& rsName
= wxButtonNameStr
47 bool Create( wxWindow
* pParent
49 ,const wxString
& rsLabel
50 ,const wxPoint
& rPos
= wxDefaultPosition
51 ,const wxSize
& rSize
= wxDefaultSize
54 ,const wxValidator
& rValidator
= wxDefaultValidator
56 ,const wxString
& rsName
= wxButtonNameStr
61 virtual void SetDefault(void);
62 static wxSize
GetDefaultSize(void);
63 virtual void Command(wxCommandEvent
& rEvent
);
64 virtual bool OS2Command( WXUINT uParam
67 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
74 void MakeOwnerDrawn(void);
76 virtual MRESULT
WindowProc( WXUINT uMsg
83 bool SendClickEvent(void);
84 virtual wxSize
DoGetBestSize(void) const;
86 DECLARE_DYNAMIC_CLASS(wxButton
)
87 }; // end of CLASS wxButton