mcontainer.h
Go to the documentation of this file.00001
00027 #ifdef _MGNCSCTRL_CONTAINER
00028
00029 #ifndef _MGUI_WIDGET_CTNR_H
00030 #define _MGUI_WIDGET_CTNR_H
00031
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00046 #define NCSCTRL_CONTAINER NCSCLASSNAME("container")
00047
00048 typedef struct _mContainer mContainer;
00049 typedef struct _mContainerClass mContainerClass;
00050 typedef struct _mContainerRenderer mContainerRenderer;
00051
00052 #define mContainerHeader(className) \
00053 mScrollWidgetHeader(className) \
00054 HWND hPanel;
00055
00066 struct _mContainer
00067 {
00068 mContainerHeader(mContainer)
00069 };
00070
00071 #define mContainerClassHeader(clsName, parentClass) \
00072 mScrollWidgetClassHeader(clsName, parentClass) \
00073 BOOL (*addIntrinsicControls)(clsName* self, const PCTRLDATA pCtrl, int nCount); \
00074 HWND (*setFocus)(clsName* self, int id); \
00075 HWND (*getFocus)(clsName* self); \
00076 HWND (*getPanel)(clsName* self); \
00077 void (*adjustContent)(clsName *self);
00078
00106 struct _mContainerClass
00107 {
00108 mContainerClassHeader(mContainer, mScrollWidget)
00109 };
00110
00111 #define mContainerRendererHeader(clsName, parentClass) \
00112 mScrollWidgetRendererHeader(clsName, parentClass)
00113
00119 struct _mContainerRenderer {
00120 mContainerRendererHeader(mContainer, mScrollWidget)
00121 };
00122
00123
00130 MGNCS_EXPORT extern mContainerClass g_stmContainerCls;
00131
00136 #define NCSS_CTNR_SHIFT NCSS_SWGT_SHIFT
00137
00142 enum mContainerNotify {
00146 NCSN_CTNR_MAX = NCSN_SWGT_MAX + 1
00147 };
00148
00150 #ifdef __cplusplus
00151 }
00152 #endif
00153
00154 #endif
00155 #endif //_MGNCSCTRL_CONTAINER