mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
Data Structures | Macros | Typedefs | Enumerations | Variables
mItem

Data Structures

struct  mItem
 The structure of mItem. It is the abstract superclass of all items occur within specific controls. For example, a listbox will contain string or bitmap items. More...
 
struct  mItemClass
 The virtual function table of mItemClass. More...
 

Macros

#define hEditor   HWND
 The handle of item editor. More...
 
#define NCSF_ITEM_SHIFT   4
 The bits used by mItem in flags. More...
 
#define NCSF_ITEM_MASK   0xFFFF
 The mask of item flags. More...
 
#define NCSF_ITEM_NORMAL   0x0000
 Normal item. More...
 
#define NCSF_ITEM_SELECTED   0x0001
 Selected item. More...
 
#define NCSF_ITEM_DISABLED   0x0002
 Disabled item. More...
 
#define NCSF_ITEM_USEBITMAP   0x0004
 The item with bitmap. More...
 
#define NCSF_ITEM_USEICON   0x0008
 The item with icon. More...
 
#define NCSF_ITEM_IMAGEMASK   (NCSF_ITEM_USEBITMAP | NCSF_ITEM_USEICON)
 The mask of item image/icon style. More...
 

Typedefs

typedef GHANDLE HITEM
 The handle of item widget. More...
 

Enumerations

enum  mItemProp { NCSP_ITEM_HEIGHT = 1, NCSP_ITEM_FLAGS, NCSP_ITEM_MAX }
 The properties id of mItem. More...
 

Variables

MGNCS_EXPORT mItemClass g_stmItemCls
 The instance of mItemClass. More...
 

Detailed Description

Macro Definition Documentation

◆ hEditor

#define hEditor   HWND

The handle of item editor.

Definition at line 81 of file mitem.h.

◆ NCSF_ITEM_DISABLED

#define NCSF_ITEM_DISABLED   0x0002

Disabled item.

Definition at line 111 of file mitem.h.

◆ NCSF_ITEM_IMAGEMASK

#define NCSF_ITEM_IMAGEMASK   (NCSF_ITEM_USEBITMAP | NCSF_ITEM_USEICON)

The mask of item image/icon style.

Definition at line 129 of file mitem.h.

◆ NCSF_ITEM_MASK

#define NCSF_ITEM_MASK   0xFFFF

The mask of item flags.

Definition at line 93 of file mitem.h.

◆ NCSF_ITEM_NORMAL

#define NCSF_ITEM_NORMAL   0x0000

Normal item.

Definition at line 99 of file mitem.h.

◆ NCSF_ITEM_SELECTED

#define NCSF_ITEM_SELECTED   0x0001

Selected item.

Definition at line 105 of file mitem.h.

◆ NCSF_ITEM_SHIFT

#define NCSF_ITEM_SHIFT   4

The bits used by mItem in flags.

Definition at line 87 of file mitem.h.

◆ NCSF_ITEM_USEBITMAP

#define NCSF_ITEM_USEBITMAP   0x0004

The item with bitmap.

Definition at line 117 of file mitem.h.

◆ NCSF_ITEM_USEICON

#define NCSF_ITEM_USEICON   0x0008

The item with icon.

Definition at line 123 of file mitem.h.

Typedef Documentation

◆ HITEM

The handle of item widget.

Definition at line 75 of file mitem.h.

Enumeration Type Documentation

◆ mItemProp

enum mItemProp

The properties id of mItem.

Enumerator
NCSP_ITEM_HEIGHT 

The height of item.

NCSP_ITEM_FLAGS 

The flags of item.

NCSP_ITEM_MAX 

The maximum value of mItem properties id.

Definition at line 283 of file mitem.h.

Variable Documentation

◆ g_stmItemCls

g_stmItemCls

The instance of mItemClass.

See also
mItemClass