mcontainerpiece.h
00001
00002 #ifndef _MGUI_NCSCTRL_PANELPIECE_H
00003 #define _MGUI_NCSCTRL_PANELPIECE_H
00004
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008
00009 typedef struct _mContainerPieceClass mContainerPieceClass;
00010 typedef struct _mContainerPiece mContainerPiece;
00011
00012 #define mContainerPieceClassHeader(clss, superCls) \
00013 mHotPieceClassHeader(clss, superCls) \
00014 void (*raiseEvent)(clss *, int event, DWORD param);
00015
00016 struct _mContainerPieceClass
00017 {
00018 mContainerPieceClassHeader(mContainerPiece, mHotPiece)
00019 };
00020
00021 MGNCS_EXPORT extern mContainerPieceClass g_stmContainerPieceCls;
00022
00023 #define mContainerPieceHeader(clss) \
00024 mHotPieceHeader(clss) \
00025 mHotPiece * body;
00026
00027 struct _mContainerPiece
00028 {
00029 mContainerPieceHeader(mContainerPiece)
00030 };
00031
00032 #define RAISE_EVENT(obj,id, param) _c(obj)->raiseEvent(obj, id, param)
00033
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037
00038 #endif
00039