mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mdialog.h
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 /*
14  * \file mmainwnd.h
15  * \author dongjunjie
16  * \date 2009/01/01
17  *
18  * This file include the dialog defines
19  *
20  \verbatim
21 
22  This file is part of mGNCS, a component for MiniGUI.
23 
24  Copyright (C) 2008~2018, Beijing FMSoft Technologies Co., Ltd.
25 
26  This program is free software: you can redistribute it and/or modify
27  it under the terms of the GNU General Public License as published by
28  the Free Software Foundation, either version 3 of the License, or
29  (at your option) any later version.
30 
31  This program is distributed in the hope that it will be useful,
32  but WITHOUT ANY WARRANTY; without even the implied warranty of
33  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34  GNU General Public License for more details.
35 
36  You should have received a copy of the GNU General Public License
37  along with this program. If not, see <http://www.gnu.org/licenses/>.
38 
39  Or,
40 
41  As this program is a library, any link to this program must follow
42  GNU General Public License version 3 (GPLv3). If you cannot accept
43  GPLv3, you need to be licensed from FMSoft.
44 
45  If you have got a commercial license of this program, please use it
46  under the terms and conditions of the commercial license.
47 
48  For more information about the commercial license, please refer to
49  <http://www.minigui.com/blog/minigui-licensing-policy/>.
50 
51  \endverbatim
52  */
53 
54 #ifdef _MGNCSCTRL_DIALOGBOX
55 
56 #ifndef _MGUI_CTRL_DLGBOX_H
57 #define _MGUI_CTRL_DLGBOX_H
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
72 #define NCSCTRL_DIALOGBOX NCSCLASSNAME("dialogbox")
73 
74 typedef struct _mDialogBox mDialogBox;
75 typedef struct _mDialogBoxClass mDialogBoxClass;
76 typedef struct _mDialogBoxRenderer mDialogBoxRenderer;
77 
78 /* define mDialogBoxRenderer */
79 #define mDialogBoxRendererHeader(clsName, parentClass) \
80  mMainWndRendererHeader(clsName, parentClass)
81 
89 struct _mDialogBoxRenderer {
90  mDialogBoxRendererHeader(mDialogBox, mMainWnd)
91 };
92 
93 /* define mDialogBox */
94 #define mDialogBoxHeader(className) \
95  mMainWndHeader(className)
96 
106 struct _mDialogBox{
107  mDialogBoxHeader(mDialogBox)
108 };
109 
110 /* define mDialogBoxClass */
111 #define mDialogBoxClassHeader(clsName, parentClass) \
112  mMainWndClassHeader(clsName, parentClass)
113 
122 struct _mDialogBoxClass
123 {
124  mDialogBoxClassHeader(mDialogBox, mMainWnd)
125 };
126 
131 MGNCS_EXPORT extern mDialogBoxClass g_stmDialogBoxCls; //Class(mDialogBox);
132 
133 
134 #define NCSS_DLGBOX_SHIFT NCSS_MNWND_SHIFT
135 
136 enum enumDialogBoxNotify {
137  NCSN_DLGBOX_MAX = NCSN_MNWND_MAX + 1
138 };
139 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif
147 #endif
mMainWnd
define the memders of mMainWnd, inherit from mPanel