]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/radiobut.h
finished wxWindow for MGL
[wxWidgets.git] / include / wx / msw / radiobut.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose: wxRadioButton class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_RADIOBUT_H_
13#define _WX_RADIOBUT_H_
14
15#ifdef __GNUG__
16#pragma interface "radiobut.h"
17#endif
18
19class WXDLLEXPORT wxRadioButton: public wxControl
20{
21 DECLARE_DYNAMIC_CLASS(wxRadioButton)
22 protected:
23 public:
24 inline wxRadioButton(void) {}
25 inline wxRadioButton(wxWindow *parent, wxWindowID id,
26 const wxString& label,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize, long style = 0,
29 const wxValidator& validator = wxDefaultValidator,
30 const wxString& name = wxRadioButtonNameStr)
31 {
32 Create(parent, id, label, pos, size, style, validator, name);
33 }
34
35 bool Create(wxWindow *parent, wxWindowID id,
36 const wxString& label,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize, long style = 0,
39 const wxValidator& validator = wxDefaultValidator,
40 const wxString& name = wxRadioButtonNameStr);
41
42 virtual void SetLabel(const wxString& label);
43 virtual void SetValue(bool val);
44 virtual bool GetValue(void) const ;
45
46 bool MSWCommand(WXUINT param, WXWORD id);
47 virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
48 WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
49
50 void Command(wxCommandEvent& event);
51};
52
53#endif
54 // _WX_RADIOBUT_H_