/
win32toolbar.h
47 lines (40 loc) · 1.25 KB
/
win32toolbar.h
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
// long awaited toolbar class
class PYW_EXPORT PyCControlBar : public PyCWnd {
public:
MAKE_PY_CTOR(PyCControlBar)
static ui_type_CObject type;
static CControlBar *GetControlBar(PyObject *self);
virtual PyObject *getattro(PyObject *obname);
virtual int setattro(PyObject *obname, PyObject *v);
static PyObject *create(PyObject *self, PyObject *args);
protected:
// virtual CString repr(); maybe add later to show id?
private:
};
class PyCToolBar : public PyCControlBar {
public:
MAKE_PY_CTOR(PyCToolBar)
static ui_type_CObject type;
static PyObject *create(PyObject *self, PyObject *args);
static CToolBar *GetToolBar(PyObject *self);
};
class PyCStatusBar : public PyCControlBar {
public:
MAKE_PY_CTOR(PyCStatusBar)
static ui_type_CObject type;
static PyObject *create(PyObject *self, PyObject *args);
static CStatusBar *GetStatusBar(PyObject *self);
};
class PyCToolBarCtrl : public PyCWnd {
public:
MAKE_PY_CTOR(PyCToolBarCtrl)
static ui_type_CObject type;
CPtrArray *bmplist;
// Array of pointers, each holding the result of one call to
// PyWinObject_AsMultipleString()
CPtrArray *strlist;
protected:
PyCToolBarCtrl();
~PyCToolBarCtrl();
private:
};