mGNCS API Reference
v1.5.0
A new control set and a new framework for MiniGUI apps
|
Go to the documentation of this file.
54 #ifndef _MGUI_NCSCTRL_BUTTON_H
55 #define _MGUI_NCSCTRL_BUTTON_H
70 #define NCSCTRL_BUTTON NCSCLASSNAME("button")
72 typedef struct _mButton
mButton;
100 #define mButtonHeader(clsName) \
101 mWidgetHeader(clsName) \
118 #define mButtonClassHeader(clsName, parentClass) \
119 mWidgetClassHeader(clsName, parentClass) \
120 mObject * (*createContent)(clsName *self, DWORD dwStyle); \
121 mObject * (*createButtonBody)(clsName *self, DWORD dwStyle, mObject * content);
149 #define mButtonRendererHeader(clsName, parentClass) \
150 mWidgetRendererHeader(clsName, parentClass) \
151 void (*drawPushButton)(clsName *self, HDC hdc, \
153 DWORD color1, DWORD color2, int status);
172 struct _mButtonRenderer
280 #define NCSS_BUTTON_IMAGE (1<<NCSS_WIDGET_SHIFT)
285 #define NCSS_BUTTON_CHECKABLE (2<<NCSS_WIDGET_SHIFT)
291 #define NCSS_BUTTON_AUTOCHECK (4<<NCSS_WIDGET_SHIFT)
297 #define NCSS_BUTTON_3DCHECK (8<<NCSS_WIDGET_SHIFT)
303 #define NCSS_BUTTON_IMAGELABEL (0x10<<NCSS_WIDGET_SHIFT)
309 #define NCSS_BUTTON_VERTIMAGELABEL (0x20<<NCSS_WIDGET_SHIFT)
310 #define NCSS_BUTTON_SHIFT (NCSS_WIDGET_SHIFT + 6)