mcheckbutton.h
00001
00002 #ifndef _MGUI_NCSCTRL_CHKBTN_H
00003 #define _MGUI_NCSCTRL_CHKBTN_H
00004
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00020 #define NCSCTRL_CHECKBUTTON NCSCLASSNAME("checkbutton")
00021
00022 typedef struct _mCheckButton mCheckButton;
00023 typedef struct _mCheckButtonClass mCheckButtonClass;
00024 typedef struct _mCheckButtonRenderer mCheckButtonRenderer;
00025
00026 #define mCheckButtonHeader(className) \
00027 mButtonHeader(className)
00028
00034 struct _mCheckButton
00035 {
00036 mCheckButtonHeader(mCheckButton)
00037 };
00038
00039 #define mCheckButtonClassHeader(className, parentClass) \
00040 mButtonClassHeader(className, parentClass)
00041
00047 struct _mCheckButtonClass
00048 {
00049 mCheckButtonClassHeader(mCheckButton, mButton)
00050 };
00051
00052 #define mCheckButtonRendererHeader(clsName, parentClass) \
00053 mButtonRendererHeader(clsName, parentClass) \
00054 void (*drawCheckbutton)(clsName *self, HDC hdc, const RECT* pRect, int status);
00055
00071
00072 struct _mCheckButtonRenderer {
00073 mCheckButtonRendererHeader(mCheckButton, mButton)
00074 };
00075
00080 MGNCS_EXPORT extern mCheckButtonClass g_stmCheckButtonCls;
00081
00086 enum mCheckButtonProp{
00087 NCSP_CHKBTN_MAX = NCSP_BUTTON_MAX + 1
00088 };
00089
00095 enum mCheckButtonNotify{
00096 NCSN_CHKBTN_MAX = NCSN_BUTTON_MAX + 1
00097 };
00098
00099 #define NCSS_CHKBTN_SHIFT NCSS_BUTTON_SHIFT
00100
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107
00108 #endif
00109