42 #ifndef _MGUI_NCSCTRL_BUTTON_H 43 #define _MGUI_NCSCTRL_BUTTON_H 58 #define NCSCTRL_BUTTON NCSCLASSNAME("button") 60 typedef struct _mButton
mButton;
88 #define mButtonHeader(clsName) \ 89 mWidgetHeader(clsName) \ 106 #define mButtonClassHeader(clsName, parentClass) \ 107 mWidgetClassHeader(clsName, parentClass) \ 108 mObject * (*createContent)(clsName *self, DWORD dwStyle); \ 109 mObject * (*createButtonBody)(clsName *self, DWORD dwStyle, mObject * content); 137 #define mButtonRendererHeader(clsName, parentClass) \ 138 mWidgetRendererHeader(clsName, parentClass) \ 139 void (*drawPushButton)(clsName *self, HDC hdc, \ 141 DWORD color1, DWORD color2, int status); 160 struct _mButtonRenderer
268 #define NCSS_BUTTON_IMAGE (1<<NCSS_WIDGET_SHIFT) 273 #define NCSS_BUTTON_CHECKABLE (2<<NCSS_WIDGET_SHIFT) 279 #define NCSS_BUTTON_AUTOCHECK (4<<NCSS_WIDGET_SHIFT) 285 #define NCSS_BUTTON_3DCHECK (8<<NCSS_WIDGET_SHIFT) 291 #define NCSS_BUTTON_IMAGELABEL (0x10<<NCSS_WIDGET_SHIFT) 297 #define NCSS_BUTTON_VERTIMAGELABEL (0x20<<NCSS_WIDGET_SHIFT) 298 #define NCSS_BUTTON_SHIFT (NCSS_WIDGET_SHIFT + 6)