MiniGUI API Reference (MiniGUI-Standalone)  v4.0.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

◆ NTB_ERR

#define NTB_ERR   (-1)

Newtoolbar return value

Definition at line 301 of file newtoolbar.h.

◆ NTB_ERR_DUPID

#define NTB_ERR_DUPID   (-3)

Newtoolbar return value

Definition at line 305 of file newtoolbar.h.

◆ NTB_ERR_SPACE

#define NTB_ERR_SPACE   (-2)

Newtoolbar return value

Definition at line 303 of file newtoolbar.h.

◆ NTB_OKAY

#define NTB_OKAY   0

Newtoolbar return value

Definition at line 299 of file newtoolbar.h.

◆ NTBM_ADDITEM

#define NTBM_ADDITEM   0xFE00

Adds an item to a newtoolbar.

NTBITEMINFO *ntbii;
wParam = 0;
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 325 of file newtoolbar.h.

◆ NTBM_ENABLEITEM

#define NTBM_ENABLEITEM   0xFE03

Enables/Disables an item in a newtoolbar control.

int id;
BOOL enable;
wParam = id;
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 385 of file newtoolbar.h.

◆ NTBM_GETITEM

#define NTBM_GETITEM   0xFE01

Retrives the information of an item in a newtoolbar control.

int id;
NTBITEMINFO *ntbii;
wParam = id;
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 345 of file newtoolbar.h.

◆ NTBM_SETBITMAP

#define NTBM_SETBITMAP   0xFE04

Sets the bitmap of a newtoolbar control.

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

Definition at line 403 of file newtoolbar.h.

◆ NTBM_SETITEM

#define NTBM_SETITEM   0xFE02

Sets the information of an item in a newtoolbar control.

int id;
wParam = id;
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 365 of file newtoolbar.h.