mcomponent.h File Reference
Go to the source code of this file.
Data Structures
Defines
- #define MAXLEN_CLASSNAME 15
- the max length of class name
- #define NCSCLASSNAME(name) name _MGNCS_CLASS_SUFFIX
- the NCS class name surfix, (_MGNCS_CLASS_SUFFIX ("_")), distinguish from old constrol set
- #define ISCLASS(class_name, clssName) ncsIsClass((const char*)(class_name), (mComponentClass*)(&Class(clssName)))
- the wrapper of ncsIsClass, test a one component class is special one.
Typedefs
Enumerations
Functions
- MGNCS_EXPORT void * ncsSetComponentHandler (mComponent *comp, int message, void *handler)
- set the component handler
- MGNCS_EXPORT void ncsSetComponentHandlers (mComponent *comp, NCS_EVENT_HANDLER *handlers, int count)
- set an array of event handlers
- MGNCS_EXPORT void * ncsGetComponentHandler (mComponent *comp, int message)
- get an event callback
- MGNCS_EXPORT BOOL ncsComponentConnectEvents (mComponent *comps, NCS_EVENT_CONNECT_INFO *connects, int counts)
- connect the events between parent and its children, used by ncsCreateMainWindowIndirectFromID
- MGNCS_EXPORT BOOL ncsIsClass (const char *className, mComponentClass *clss)
- check a class name is a special class type or not
- MGNCS_EXPORT BOOL ncsIsChildClass (const char *childClassName, const char *parentClassName)
- check a class name is derived class of a special class
- MGNCS_EXPORT BOOL ncsRegisterComponent (mComponentClass *compCls, DWORD dwStyle, DWORD dwExStyle, int idCursor, int idBkColor)
- register a component class into MiniGUI, so that ncsCreateWindow and ncsCreateWindow can find a mComponentClass instance
- MGNCS_EXPORT mComponentClass * ncsGetComponentClass (const char *className, BOOL check)
- Get a mComponentClass instance from MiniGUI.
Variables
Detailed Description
- Author:
- dongjunjie
- Date:
- 2009/04/16
This file include the base object defines
*
* This file is part of mgncs, new control of MiniGUI
*
*
Definition in file mcomponent.h.