]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/spinbutt.h
only call GSocket_Init() when needed and do call it before using GAddress_XXX
[wxWidgets.git] / include / wx / msw / spinbutt.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
1e6feb95 2// Name: wx/univ/spinbutt.h
2bda0e17
KB
3// Purpose: wxSpinButton class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
31528cd3 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_SPINBUTT_H_
13#define _WX_SPINBUTT_H_
2bda0e17
KB
14
15#ifdef __GNUG__
b782f2e0 16 #pragma interface "spinbutt.h"
2bda0e17
KB
17#endif
18
19#include "wx/control.h"
20#include "wx/event.h"
21
31528cd3 22class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase
2bda0e17 23{
aeafc354 24public:
b782f2e0 25 // construction
5ea47806 26 wxSpinButton() { }
a23fd0e1 27
aeafc354
VZ
28 wxSpinButton(wxWindow *parent,
29 wxWindowID id = -1,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
1e6feb95 33 const wxString& name = wxSPIN_BUTTON_NAME)
aeafc354
VZ
34 {
35 Create(parent, id, pos, size, style, name);
36 }
a23fd0e1 37
aeafc354 38 virtual ~wxSpinButton();
a23fd0e1 39
aeafc354
VZ
40 bool Create(wxWindow *parent,
41 wxWindowID id = -1,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
a23fd0e1 44 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
1e6feb95 45 const wxString& name = wxSPIN_BUTTON_NAME);
a23fd0e1
VZ
46
47
0655ad29 48 // accessors
31528cd3
VZ
49 virtual int GetValue() const;
50 virtual void SetValue(int val);
51 virtual void SetRange(int minVal, int maxVal);
a23fd0e1 52
0655ad29 53 // implementation
aeafc354 54 virtual bool MSWCommand(WXUINT param, WXWORD id);
0655ad29 55 virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
a23fd0e1
VZ
56 virtual bool MSWOnScroll(int orientation, WXWORD wParam,
57 WXWORD pos, WXHWND control);
b782f2e0 58
8614c467
VZ
59 // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
60 virtual bool AcceptsFocus() const { return FALSE; }
61
b782f2e0 62protected:
f68586e5 63 virtual wxSize DoGetBestSize() const;
b782f2e0
VZ
64
65private:
66 DECLARE_DYNAMIC_CLASS(wxSpinButton)
2bda0e17
KB
67};
68
2bda0e17 69#endif
bbcdf8bc 70 // _WX_SPINBUTT_H_