]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/spinbutt.h
Added WXDLLEXPORT's to the class definitions
[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 // accessors
56 virtual int GetValue() const;
57 virtual void SetValue(int val);
58 virtual void SetRange(int minVal, int maxVal);
59
60 // implementation
61 virtual bool MSWCommand(WXUINT param, WXWORD id);
62 virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
63 virtual bool MSWOnScroll(int orientation, WXWORD wParam,
64 WXWORD pos, WXHWND control);
65};
66
67#endif
68 // _WX_WIN95__
69#endif
70 // _WX_SPINBUTT_H_