]>
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"
17 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr
;
20 class WXDLLEXPORT wxButton
: public wxButtonBase
24 inline wxButton( wxWindow
* pParent
26 ,const wxString
& rsLabel
27 ,const wxPoint
& rPos
= wxDefaultPosition
28 ,const wxSize
& rSize
= wxDefaultSize
31 ,const wxValidator
& rValidator
= wxDefaultValidator
33 ,const wxString
& rsName
= wxButtonNameStr
49 bool Create( wxWindow
* pParent
51 ,const wxString
& rsLabel
52 ,const wxPoint
& rPos
= wxDefaultPosition
53 ,const wxSize
& rSize
= wxDefaultSize
56 ,const wxValidator
& rValidator
= wxDefaultValidator
58 ,const wxString
& rsName
= wxButtonNameStr
63 virtual void SetDefault(void);
64 static wxSize
GetDefaultSize(void);
65 virtual void Command(wxCommandEvent
& rEvent
);
66 virtual bool OS2Command( WXUINT uParam
69 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
76 void MakeOwnerDrawn(void);
78 virtual MRESULT
WindowProc( WXUINT uMsg
85 bool SendClickEvent(void);
86 virtual wxSize
DoGetBestSize(void) const;
88 DECLARE_DYNAMIC_CLASS(wxButton
)
89 }; // end of CLASS wxButton