mradiobutton.h

00001 
00002 #ifndef _MGUI_NCSCTRL_RDOBTN_H
00003 #define _MGUI_NCSCTRL_RDOBTN_H
00004 
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif  /* __cplusplus */
00008 
00019 #define NCSCTRL_RADIOBUTTON        NCSCLASSNAME("radiobutton")
00020 
00021 typedef struct _mRadioButton mRadioButton;
00022 typedef struct _mRadioButtonClass mRadioButtonClass;
00023 typedef struct _mRadioButtonRenderer mRadioButtonRenderer;
00024 
00025 #define mRadioButtonHeader(className) \
00026         mCheckButtonHeader(className) 
00027 
00032 struct _mRadioButton
00033 {
00034         mRadioButtonHeader(mRadioButton)
00035 };
00036 
00037 #define mRadioButtonClassHeader(className, parentClass) \
00038         mCheckButtonClassHeader(className, parentClass)
00039 
00044 struct _mRadioButtonClass
00045 {
00046         mRadioButtonClassHeader(mRadioButton, mCheckButton)
00047 };
00048 
00049 #define mRadioButtonRendererHeader(clsName, parentClass) \
00050         mCheckButtonRendererHeader(clsName, parentClass) \
00051     void (*drawRadiobutton)(clsName* self,HDC hdc, const RECT* pRect, int status);
00052 
00067 /* define the render of image static */
00068 struct _mRadioButtonRenderer {
00069         mRadioButtonRendererHeader(mRadioButton, mCheckButton)
00070 };
00071 
00076 MGNCS_EXPORT extern mRadioButtonClass g_stmRadioButtonCls;
00077 
00083 /*property*/
00084 enum mRadioButtonProp {
00085         NCSP_RDOBTN_MAX = NCSP_CHKBTN_MAX + 1,
00086 };
00087 
00088 #define NCSS_RDOBTN_SHIFT NCSS_CHKBTN_SHIFT
00089 
00095 enum enumRadioButtonNotify{
00096         NCSN_RDOBTN_MAX = NCSN_CHKBTN_MAX + 1
00097 };
00098 
00103 #ifdef __cplusplus
00104 }
00105 #endif  /* __cplusplus */
00106 
00107 #endif /* _MGUI_NCSCTRL_RDOBTN_H */
00108 
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3