Messages of NewToolBar control
[NewToolBar control]

Defines


Define Documentation

#define NTB_ERR   (-1)

Newtoolbar return value

Definition at line 268 of file newtoolbar.h.

#define NTB_ERR_DUPID   (-3)

Newtoolbar return value

Definition at line 272 of file newtoolbar.h.

#define NTB_ERR_SPACE   (-2)

Newtoolbar return value

Definition at line 270 of file newtoolbar.h.

#define NTB_OKAY   0

Newtoolbar return value

Definition at line 266 of file newtoolbar.h.

#define NTBM_ADDITEM   0xFE00

Adds an item to a newtoolbar.

 NTBM_ADDITEM
 NTBITEMINFO *ntbii;

 wParam = 0;
 lParam = (LPARAM)ntbii;
Parameters:
ntbii Pointer 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 292 of file newtoolbar.h.

#define NTBM_ENABLEITEM   0xFE03

Enables/Disables an item in a newtoolbar control.

 NTBM_ENABLEITEM
 int id;
 BOOL enable;

 wParam = id;
 lParam = enable;
Parameters:
id The identifier of the item.
enable True to enable item; false to disable item.
Returns:
NTB_OKAY on success, else NTB_ERR.

Definition at line 352 of file newtoolbar.h.

#define NTBM_GETITEM   0xFE01

Retrives the information of an item in a newtoolbar control.

 NTBM_GETITEM
 int id;
 NTBITEMINFO *ntbii;

 wParam = id;
 lParam = (LPARAM)ntbii;
Parameters:
id The identifier of the item.
ntbii Pointer to the data storing the newtoobar item info.
Returns:
NTB_OKAY on success, else NTB_ERR.

Definition at line 312 of file newtoolbar.h.

#define NTBM_SETBITMAP   0xFE04

Sets the bitmap of a newtoolbar control.

 NTBM_SETBITMAP
 NTBINFO ntbi;

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

Definition at line 370 of file newtoolbar.h.

#define NTBM_SETITEM   0xFE02

Sets the information of an item in a newtoolbar control.

 NTBM_SETITEM
 int id;
 NTBITEMINFO ntbii;

 wParam = id;
 lParam = (LPARAM)&ntbii;
Parameters:
id The identifier of the item.
ntbii The structure for storing the newtoobar item info.
Returns:
NTB_OKAY on success, else NTB_ERR.

Definition at line 332 of file newtoolbar.h.

Generated on Thu Apr 7 15:58:36 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3