mGNCS API Reference
v1.5.0
A new control set and a new framework for MiniGUI apps
|
Go to the documentation of this file.
54 #ifndef _MG_MINIMTOOLITEM_H_
55 #define _MG_MINIMTOOLITEM_H_
72 NCS_UNKNOWNTOOLITEM = 0,
79 typedef struct _mToolImage{
82 unsigned char cell_count;
86 #define TOOLIMGF_UNLOAD 0x01
87 #define TOOLIMGF_VERTCELL 0x02 //the image of cell a vert arranged
99 MGNCS_EXPORT mToolImage *
ncsNewToolImage(PBITMAP pbmp,
int cell_count, BOOL autoUnload, BOOL bVert);
110 MGNCS_EXPORT mToolImage *
ncsNewToolImageFromFile(
const char *fileName,
int cell_count, BOOL autoUnload, BOOL bVert);
156 #define NCS_TOOLITEM_FLAG_TEXT_LEFT 0x01
162 #define NCS_TOOLITEM_FLAG_TEXT_UP NCS_TOOLITEM_FLAG_TEXT_LEFT
167 #define NCS_TOOLITEM_FLAG_VERT 0x02
169 #define NCS_TOOLITEM_LABEL_TEXT_LEFT 0x10
170 #define NCS_TOOLITEM_LABEL_TEXT_RIGHT 0x20
171 #define NCS_TOOLITEM_LABEL_TEXT_CENTER 0x40
173 #define NCS_TOOLITEM_LABEL_TEXT_TOP 0x80
174 #define NCS_TOOLITEM_LABEL_TEXT_BOTTOM 0x100
175 #define NCS_TOOLITEM_LABEL_TEXT_VCENTER 0x200
189 MGNCS_EXPORT
void* ncsCreatePushToolItem(
int id, mToolImage *img,
const char* str, UINT flags);
213 MGNCS_EXPORT
void* ncsCreateMenuToolItem(
int id, mToolImage *img,
const char* str, UINT flags,
mPopMenuMgr *menu);
219 #define NCS_TOOLITEM_UNCHECKED 0x00
224 #define NCS_TOOLITEM_CHECKED 0x01
241 MGNCS_EXPORT
void* ncsCreateCheckToolItem(
int id, mToolImage *img,
const char* str, UINT flags,
int state);
257 MGNCS_EXPORT
void* ncsCreateRadioToolItem(
int id, mToolImage *img,
const char* str, UINT flags);
382 #define NEWTOOLITEM(id, Object, param) \
383 (Object*)(ncsNewToolItem((id), (mObjectClass*)&Class(Object), (DWORD)(param)))
396 #define FREETOOLITEM(obj) \
397 ncsFreeToolItem((mObject*)(obj))
the basic object class of NCS