blob: 74f6799b234ab94370942ae2bd8e4a67b6dfd00c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#ifndef WIDGETSLIDER_H
#define WIDGETSLIDER_H
#include <skygi/skygi.h>
#include "widget.h"
//! A Slider class
class CSlider: public CWidget {
public:
/*! Constructor */
CSlider();
/*!
Create Slider
\param parent HANDLE of the parent window on which to draw
\param name Name of the Progressbar
\param x Top left x coordinate
\param y Top left y coordinate
\param w Form width
\param h Form height
\param style Style flags
\return Success: S_OK\n
Failure: E_HANDLE
*/
HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style);
/*!
Set value of Slider
\param position Position to set
*/
HRESULT SetValue(int position);
/*!
Get value of Slider
\return position
*/
int GetValue();
/*!
Set Maximum value of Slider
\param max Maximum value
*/
HRESULT SetMax(int max);
/*!
Get Maximum value of Slider
\return Maximum value
*/
int GetMax();
private:
int maximum;
int pos;
};
#endif
|