blob: fa06e30e5667d82cd2e3370dbf8bb9579e7d7e25 (
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
|
#ifndef WIDGETCHECKBOX_H
#define WIDGETCHECKBOX_H
#include <skygi/skygi.h>
#include "widget.h"
//! A Checkbox class
class CCheckbox: public CWidget {
public:
/*! Constructor */
CCheckbox();
/*!
Create Checkbox
\param parent HANDLE of the parent window on which to draw
\param name Name of the Checkbox
\param x Top left x coordinate
\param y Top left y coordinate
\param w Checkbox width
\param h Checkbox height
\param style Style flags
\param ID ID sent to parent when Checkbox is (un)checked (MSG_COMMAND)
\return Success: S_OK\n
Failure: E_HANDLE
*/
HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style, unsigned int ID) ;
/*!
Enable Checkbox
*/
HRESULT Enable();
/*!
Disable Checkbox
*/
HRESULT Disable();
/*!
Set State
\param state Checked: nonzero\n Unchecked: 0
*/
HRESULT SetState(int state);
/*!
Get State
\return Nonzero if Checked\n 0 if Unchecked
*/
int GetState();
};
#endif
|