]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/button.h
Added WX_DEFINE_*_USER_EXPORTED_ARRAY macros for external dlls.
[wxWidgets.git] / include / wx / os2 / button.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose: wxButton class
d88de032 4// Author: David Webster
0e320a79 5// Modified by:
d88de032 6// Created: 10/13/99
0e320a79 7// RCS-ID: $Id$
d88de032
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
0e320a79 15#include "wx/control.h"
0e320a79
DW
16
17WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
18
19// Pushbutton
210a651b 20class WXDLLEXPORT wxButton: public wxButtonBase
0e320a79 21{
0e320a79 22 public:
afa59b4e
DW
23 inline wxButton() {}
24 inline wxButton( wxWindow* pParent
25 ,wxWindowID vId
26 ,const wxString& rsLabel
27 ,const wxPoint& rPos = wxDefaultPosition
28 ,const wxSize& rSize = wxDefaultSize
29 ,long lStyle = 0
57c4d796 30#if wxUSE_VALIDATORS
afa59b4e 31 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 32#endif
afa59b4e
DW
33 ,const wxString& rsName = wxButtonNameStr
34 )
35 {
36 Create( pParent
37 ,vId
38 ,rsLabel
39 ,rPos
40 ,rSize
41 ,lStyle
42#if wxUSE_VALIDATORS
43 ,rValidator
44#endif
45 ,rsName
46 );
47 }
0e320a79 48
afa59b4e
DW
49 bool Create( wxWindow* pParent
50 ,wxWindowID vId
51 ,const wxString& rsLabel
52 ,const wxPoint& rPos = wxDefaultPosition
53 ,const wxSize& rSize = wxDefaultSize
54 ,long lStyle = 0
57c4d796 55#if wxUSE_VALIDATORS
afa59b4e 56 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 57#endif
afa59b4e
DW
58 ,const wxString& rsName = wxButtonNameStr
59 );
0e320a79 60
afa59b4e 61 virtual ~wxButton();
1408104d 62
afa59b4e
DW
63 virtual void SetDefault(void);
64 static wxSize GetDefaultSize(void);
65 virtual void Command(wxCommandEvent& rEvent);
66 virtual bool OS2Command( WXUINT uParam
67 ,WXWORD vId
68 );
69 virtual WXHBRUSH OnCtlColor( WXHDC hDC
70 ,WXHWND hWnd
71 ,WXUINT uCtlColor
72 ,WXUINT uMessage
73 ,WXWPARAM wParam
74 ,WXLPARAM lParam
75 );
76 void MakeOwnerDrawn(void);
1408104d 77
afa59b4e
DW
78 virtual MRESULT WindowProc( WXUINT uMsg
79 ,WXWPARAM wParam
80 ,WXLPARAM lParam
81 );
1408104d 82
d88de032 83protected:
d88de032 84
afa59b4e
DW
85 bool SendClickEvent(void);
86 virtual wxSize DoGetBestSize(void) const;
210a651b
DW
87private:
88 DECLARE_DYNAMIC_CLASS(wxButton)
afa59b4e 89}; // end of CLASS wxButton
0e320a79
DW
90
91#endif
92 // _WX_BUTTON_H_
afa59b4e 93