MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of NewToolBar control

Macros

#define NTB_OKAY   0
 
#define NTB_ERR   (-1)
 
#define NTB_ERR_SPACE   (-2)
 
#define NTB_ERR_DUPID   (-3)
 
#define NTBM_ADDITEM   0xFE00
 Adds an item to a newtoolbar. More...
 
#define NTBM_GETITEM   0xFE01
 Retrives the information of an item in a newtoolbar control. More...
 
#define NTBM_SETITEM   0xFE02
 Sets the information of an item in a newtoolbar control. More...
 
#define NTBM_ENABLEITEM   0xFE03
 Enables/Disables an item in a newtoolbar control. More...
 
#define NTBM_SETBITMAP   0xFE04
 Sets the bitmap of a newtoolbar control. More...
 

Detailed Description

Macro Definition Documentation

#define NTB_ERR   (-1)

Newtoolbar return value

Definition at line 289 of file newtoolbar.h.

#define NTB_ERR_DUPID   (-3)

Newtoolbar return value

Definition at line 293 of file newtoolbar.h.

#define NTB_ERR_SPACE   (-2)

Newtoolbar return value

Definition at line 291 of file newtoolbar.h.

#define NTB_OKAY   0

Newtoolbar return value

Definition at line 287 of file newtoolbar.h.

#define NTBM_ADDITEM   0xFE00

Adds an item to a newtoolbar.

1 NTBM_ADDITEM
2 NTBITEMINFO *ntbii;
3 
4 wParam = 0;
5 lParam = (LPARAM)ntbii;
Parameters
ntbiiPointer to the data storing the newtoobar item info.
Returns
NTB_OKAY on success, else one of the following values:
  • NTB_ERR_SPACE
    No enongh space to allocate memory for new item.
  • NTB_ERR_DUPID
    Duplicated identifier with an existed item.

Definition at line 313 of file newtoolbar.h.

#define NTBM_ENABLEITEM   0xFE03

Enables/Disables an item in a newtoolbar control.

1 NTBM_ENABLEITEM
2 int id;
3 BOOL enable;
4 
5 wParam = id;
6 lParam = enable;
Parameters
idThe identifier of the item.
enableTrue to enable item; false to disable item.
Returns
NTB_OKAY on success, else NTB_ERR.

Definition at line 373 of file newtoolbar.h.

#define NTBM_GETITEM   0xFE01

Retrives the information of an item in a newtoolbar control.

1 NTBM_GETITEM
2 int id;
3 NTBITEMINFO *ntbii;
4 
5 wParam = id;
6 lParam = (LPARAM)ntbii;
Parameters
idThe identifier of the item.
ntbiiPointer to the data storing the newtoobar item info.
Returns
NTB_OKAY on success, else NTB_ERR.

Definition at line 333 of file newtoolbar.h.

#define NTBM_SETBITMAP   0xFE04

Sets the bitmap of a newtoolbar control.

1 NTBM_SETBITMAP
2 NTBINFO ntbi;
3 
4 wParam = 0;
5 lParam = (LPARAM)&ntbi;
Parameters
ntbiThe structure for storing the newtoobar info.
Returns
NTB_OKAY on success, else NTB_ERR.

Definition at line 391 of file newtoolbar.h.

#define NTBM_SETITEM   0xFE02

Sets the information of an item in a newtoolbar control.

1 NTBM_SETITEM
2 int id;
3 NTBITEMINFO ntbii;
4 
5 wParam = id;
6 lParam = (LPARAM)&ntbii;
Parameters
idThe identifier of the item.
ntbiiThe structure for storing the newtoobar item info.
Returns
NTB_OKAY on success, else NTB_ERR.

Definition at line 353 of file newtoolbar.h.