mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mcontainer.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
54 #ifdef _MGNCSCTRL_CONTAINER
55 
56 #ifndef _MGUI_WIDGET_CTNR_H
57 #define _MGUI_WIDGET_CTNR_H
58 
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif /* __cplusplus */
63 
73 #define NCSCTRL_CONTAINER NCSCLASSNAME("container")
74 
75 typedef struct _mContainer mContainer;
76 typedef struct _mContainerClass mContainerClass;
77 typedef struct _mContainerRenderer mContainerRenderer;
78 
79 #define mContainerHeader(className) \
80  mScrollWidgetHeader(className) \
81  HWND hPanel;
82 
93 struct _mContainer
94 {
95  mContainerHeader(mContainer)
96 };
97 
98 #define mContainerClassHeader(clsName, parentClass) \
99  mScrollWidgetClassHeader(clsName, parentClass) \
100  BOOL (*addIntrinsicControls)(clsName* self, const PCTRLDATA pCtrl, int nCount); \
101  HWND (*setFocus)(clsName* self, int id); \
102  HWND (*getFocus)(clsName* self); \
103  HWND (*getPanel)(clsName* self); \
104  void (*adjustContent)(clsName *self);
105 
133 struct _mContainerClass
134 {
135  mContainerClassHeader(mContainer, mScrollWidget)
136 };
137 
138 #define mContainerRendererHeader(clsName, parentClass) \
139  mScrollWidgetRendererHeader(clsName, parentClass)
140 
146 struct _mContainerRenderer {
147  mContainerRendererHeader(mContainer, mScrollWidget)
148 };
149 
150 
157 MGNCS_EXPORT extern mContainerClass g_stmContainerCls;
158 
163 #define NCSS_CTNR_SHIFT NCSS_SWGT_SHIFT
164 
169 enum mContainerNotify {
173  NCSN_CTNR_MAX = NCSN_SWGT_MAX + 1
174 };
175 
177 #ifdef __cplusplus
178 }
179 #endif /* __cplusplus */
180 
181 #endif /* _MGUI_WIDGET_CTNR_H */
182 #endif //_MGNCSCTRL_CONTAINER
mScrollWidget
The structure of mScrollWidget control, which derived from mWidget. It is the abstract superclass of ...
NCSN_SWGT_MAX
@ NCSN_SWGT_MAX
Definition: mscroll_widget.h:339