mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mpopmenumgr.h
Go to the documentation of this file.
1 
42 #ifndef _MG_MINIPOPMENUMGR_H
43 #define _MG_MINIPOPMENUMGR_H
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
54 typedef struct _mPopMenuMgrClass mPopMenuMgrClass;
55 typedef struct _mPopMenuMgr mPopMenuMgr;
56 
57 #define mPopMenuMgrClassHeader(clss, clsSuper) \
58  mObjectClassHeader(clss, clsSuper) \
59  BOOL (*addItem)(clss *, UINT type, const char* str, PBITMAP bmp, int id, UINT state, mPopMenuMgr *subMenu, DWORD add_data); \
60  HMENU (*createMenu)(clss *); \
61  void (*popMenu)(clss *, mObject *owner); \
62  BOOL (*addSeparator)(clss *); \
63  BOOL (*getMenuItem)(clss *, int idx, MENUITEMINFO *pmii, BOOL byCommand);
64 
116 struct _mPopMenuMgrClass {
117  mPopMenuMgrClassHeader(mPopMenuMgr, mObject)
118 };
119 
120 MGNCS_EXPORT extern mPopMenuMgrClass g_stmPopMenuMgrCls;
121 
122 
123 typedef struct mPopMenuItem mPopMenuItem;
124 
125 #define mPopMenuMgrHeader(clss) \
126  mObjectHeader(clss) \
127  mPopMenuItem *head;
128 
135 struct _mPopMenuMgr {
136  mPopMenuMgrHeader(mPopMenuMgr)
137 };
138 
143 #ifdef __cplusplus
144 }
145 #endif
146 
147 #endif
148 
the members of mPropMenuMgr
mPopMenuMgr class, derived from mObject
the Object struct