]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/button.h
Added wxStrnicmp and to wchar.h, not yet for Unicode mode.
[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
20class WXDLLEXPORT wxButton: public wxControl
21{
22 DECLARE_DYNAMIC_CLASS(wxButton)
23 public:
24 inline wxButton() {}
25 inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize, long style = 0,
28 const wxValidator& validator = wxDefaultValidator,
29 const wxString& name = wxButtonNameStr)
30 {
31 Create(parent, id, label, pos, size, style, validator, name);
32 }
33
34 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize, long style = 0,
37 const wxValidator& validator = wxDefaultValidator,
38 const wxString& name = wxButtonNameStr);
39
1408104d
DW
40 virtual ~wxButton();
41
0e320a79 42 virtual void SetDefault();
1408104d
DW
43
44 static wxSize GetDefaultSize();
45
0e320a79 46 virtual void Command(wxCommandEvent& event);
d88de032
DW
47 virtual bool OS2Command(WXUINT param, WXWORD id);
48 virtual WXHBRUSH OnCtlColor(WXHDC pDC,
49 WXHWND pWnd,
50 WXUINT nCtlColor,
51 WXUINT message,
52 WXWPARAM wParam,
53 WXLPARAM lParam);
54protected:
55 // send a notification event, return TRUE if processed
56 bool SendClickEvent();
57
58 virtual wxSize DoGetBestSize();
0e320a79
DW
59};
60
61#endif
62 // _WX_BUTTON_H_