]>
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
28 ,const wxValidator
& rValidator
= wxDefaultValidator
29 ,const wxString
& rsName
= wxButtonNameStr
43 bool Create( wxWindow
* pParent
45 ,const wxString
& rsLabel
46 ,const wxPoint
& rPos
= wxDefaultPosition
47 ,const wxSize
& rSize
= wxDefaultSize
49 ,const wxValidator
& rValidator
= wxDefaultValidator
50 ,const wxString
& rsName
= wxButtonNameStr
55 virtual void SetDefault(void);
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