mgroupbox.h

00001 
00002 #ifndef _MGUI_NCSCTRL_GRPBOX_H
00003 #define _MGUI_NCSCTRL_GRPBOX_H
00004  
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif  /* __cplusplus */
00009 
00020 #define NCSCTRL_GROUPBOX        NCSCLASSNAME("groupbox")
00021 
00022 typedef struct _mGroupBox mGroupBox;
00023 typedef struct _mGroupBoxClass mGroupBoxClass;
00024 typedef struct _mGroupBoxRenderer mGroupBoxRenderer;
00025 
00026 #define mGroupBoxHeader(clsName) \
00027         mStaticHeader(clsName) 
00028 
00034 struct _mGroupBox
00035 {
00036         mGroupBoxHeader(mGroupBox)
00037 };
00038 
00039 #define mGroupBoxClassHeader(clsName, parentClass)  \
00040         mStaticClassHeader(clsName, parentClass)        \
00041     int (*hitTest)(clsName *self, int x, int y);
00042 
00055 struct _mGroupBoxClass
00056 {
00057         mGroupBoxClassHeader(mGroupBox, mStatic)
00058 };
00059 
00060 #define mGroupBoxRendererHeader(clsName, parentClass) \
00061         mStaticRendererHeader(clsName, parentClass) \
00062     void (*drawGroupbox)(clsName *self, HDC hdc, const RECT *pRect);
00063 
00075 /* define the render of image static */
00076 struct _mGroupBoxRenderer {
00077         mGroupBoxRendererHeader(mGroupBox, mStatic)
00078 };
00079 
00085 MGNCS_EXPORT extern mGroupBoxClass g_stmGroupBoxCls;
00086 
00092 /* property */
00093 enum mGroupBoxProp {
00094         NCSP_GRPBOX_MAX = NCSP_STATIC_MAX + 1
00095 };
00096 
00097 #define NCSS_GRPBOX_SHIFT NCSS_STATIC_SHIFT
00098 
00103 enum enumGroupBoxNotify{
00104         NCSN_GRPBOX_MAX = NCSN_STATIC_MAX + 1
00105 };
00106 
00110 #ifdef __cplusplus
00111 }
00112 #endif  /* __cplusplus */
00113 
00114 #endif /* _MGUI_NCSCTRL_GRPBOX_H */
00115 
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3