]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/spinbutt.h
wxTreeEvent is declared in one header, not 3 of them
[wxWidgets.git] / include / wx / msw / spinbutt.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: spinbutt.h
3// Purpose: wxSpinButton 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_SPINBUTT_H_
13#define _WX_SPINBUTT_H_
14
15#ifdef __GNUG__
16#pragma interface "spinbutt.h"
17#endif
18
19#include "wx/control.h"
20#include "wx/event.h"
21
22#if defined(__WIN95__)
23
24
25class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase
26{
27DECLARE_DYNAMIC_CLASS(wxSpinButton)
28
29public:
30 /*
31 * Public interface
32 */
33 wxSpinButton() { }
34
35 wxSpinButton(wxWindow *parent,
36 wxWindowID id = -1,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize,
39 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
40 const wxString& name = "wxSpinButton")
41 {
42 Create(parent, id, pos, size, style, name);
43 }
44
45 virtual ~wxSpinButton();
46
47 bool Create(wxWindow *parent,
48 wxWindowID id = -1,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
52 const wxString& name = "wxSpinButton");
53
54
55 // Attributes
56 ////////////////////////////////////////////////////////////////////////////
57
58 virtual int GetValue() const;
59 virtual void SetValue(int val);
60 virtual void SetRange(int minVal, int maxVal);
61
62 // IMPLEMENTATION
63 virtual bool MSWCommand(WXUINT param, WXWORD id);
64 virtual bool MSWOnScroll(int orientation, WXWORD wParam,
65 WXWORD pos, WXHWND control);
66};
67
68#endif
69 // _WX_WIN95__
70#endif
71 // _WX_SPINBUTT_H_