mdialog.h

00001 /*
00002 * \file mmainwnd.h
00003 * \author dongjunjie
00004 * \date 2009/01/01
00005 *
00006 * This file include the dialog defines
00007 *
00008 * \verbatim
00009 *
00010 *       This file is part of mgncs, new control of MiniGUI
00011 *
00012 *       \endverbatim
00013 *
00014 */
00015 #ifdef _MGNCSCTRL_DIALOGBOX
00016 
00017 #ifndef _MGUI_CTRL_DLGBOX_H
00018 #define _MGUI_CTRL_DLGBOX_H
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00033 #define NCSCTRL_DIALOGBOX NCSCLASSNAME("dialogbox")
00034 
00035 typedef struct _mDialogBox mDialogBox;
00036 typedef struct _mDialogBoxClass mDialogBoxClass;
00037 typedef struct _mDialogBoxRenderer mDialogBoxRenderer;
00038 
00039 /* define mDialogBoxRenderer */
00040 #define mDialogBoxRendererHeader(clsName, parentClass) \
00041         mMainWndRendererHeader(clsName, parentClass)
00042 
00050 struct _mDialogBoxRenderer {
00051         mDialogBoxRendererHeader(mDialogBox, mMainWnd)
00052 };
00053 
00054 /* define mDialogBox */
00055 #define mDialogBoxHeader(className) \
00056         mMainWndHeader(className)
00057 
00067 struct _mDialogBox{
00068         mDialogBoxHeader(mDialogBox)
00069 };
00070 
00071 /* define mDialogBoxClass */
00072 #define mDialogBoxClassHeader(clsName, parentClass)    \
00073         mMainWndClassHeader(clsName, parentClass)
00074 
00083 struct _mDialogBoxClass
00084 {
00085         mDialogBoxClassHeader(mDialogBox, mMainWnd)
00086 };
00087 
00092 MGNCS_EXPORT extern mDialogBoxClass g_stmDialogBoxCls; //Class(mDialogBox);
00093 
00094 
00095 #define NCSS_DLGBOX_SHIFT  NCSS_MNWND_SHIFT
00096 
00097 enum enumDialogBoxNotify {
00098         NCSN_DLGBOX_MAX = NCSN_MNWND_MAX + 1
00099 };
00100 
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106 
00107 #endif
00108 #endif
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3