mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mgroupbox.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 #ifndef _MGUI_NCSCTRL_GRPBOX_H
55 #define _MGUI_NCSCTRL_GRPBOX_H
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif /* __cplusplus */
60 
71 #define NCSCTRL_GROUPBOX NCSCLASSNAME("groupbox")
72 
73 typedef struct _mGroupBox mGroupBox;
74 typedef struct _mGroupBoxClass mGroupBoxClass;
75 typedef struct _mGroupBoxRenderer mGroupBoxRenderer;
76 
77 #define mGroupBoxHeader(clsName) \
78  mStaticHeader(clsName)
79 
85 struct _mGroupBox
86 {
87  mGroupBoxHeader(mGroupBox)
88 };
89 
90 #define mGroupBoxClassHeader(clsName, parentClass) \
91  mStaticClassHeader(clsName, parentClass) \
92  int (*hitTest)(clsName *self, int x, int y);
93 
106 struct _mGroupBoxClass
107 {
108  mGroupBoxClassHeader(mGroupBox, mStatic)
109 };
110 
111 #define mGroupBoxRendererHeader(clsName, parentClass) \
112  mStaticRendererHeader(clsName, parentClass) \
113  void (*drawGroupbox)(clsName *self, HDC hdc, const RECT *pRect);
114 
126 /* define the render of image static */
127 struct _mGroupBoxRenderer {
128  mGroupBoxRendererHeader(mGroupBox, mStatic)
129 };
130 
136 MGNCS_EXPORT extern mGroupBoxClass g_stmGroupBoxCls;
137 
143 /* property */
145  NCSP_GRPBOX_MAX = NCSP_STATIC_MAX + 1
146 };
147 
148 #define NCSS_GRPBOX_SHIFT NCSS_STATIC_SHIFT
149 
155  NCSN_GRPBOX_MAX = NCSN_STATIC_MAX + 1
156 };
157 
161 #ifdef __cplusplus
162 }
163 #endif /* __cplusplus */
164 
165 #endif /* _MGUI_NCSCTRL_GRPBOX_H */
166 
mGroupBox
groupbox class, derived from mStatic
mGroupBoxRenderer
groupbox class renderer interface, derived from mStaticRenderer
g_stmGroupBoxCls
MGNCS_EXPORT mGroupBoxClass g_stmGroupBoxCls
global mGroupBoxClass
enumGroupBoxNotify
enumGroupBoxNotify
the notification code of mGroupBox
Definition: mgroupbox.h:154
mGroupBoxClass
struct of groupbox control, derived from mStaticClass
mGroupBoxProp
mGroupBoxProp
the properties id of mGroupBox
Definition: mgroupbox.h:144
mStatic
Static class, derived from mWidget.