MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Modules | Data Structures | Macros | Typedefs
NewToolBar control

Modules

 Styles of NewToolBar control
 
 Messages of NewToolBar control
 

Data Structures

struct  _NTBINFO
 
struct  _NTBITEMINFO
 

Macros

#define CTRL_NEWTOOLBAR   ("newtoolbar")
 The class name of newtoolbar control. More...
 
#define NTBIF_DISABLED   0x0010
 The item is disabled. More...
 
#define NTBIF_CHECKED   0x0020
 The item is checked. More...
 

Typedefs

typedef struct _NTBINFO NTBINFO
 
typedef void(* HOTSPOTPROC) (HWND hwnd, int id, const RECT *cell, int x, int y)
 Type of the hotspot-clicked callback procedure. More...
 
typedef struct _NTBITEMINFO NTBITEMINFO
 
typedef NTBITEMINFOPNTBITEMINFO
 Data type of pointer to a NTBITEMINFO;. More...
 

Detailed Description

Note
You should pass information of the control through the argument dwAddData of CreateWindowEx function.
NTBINFO ntb_info;
CreateWindowEx (CTRL_TOOLBAR, ..., (DWORD) &ntb_info);
See also
NTBINFO

Macro Definition Documentation

#define CTRL_NEWTOOLBAR   ("newtoolbar")

The class name of newtoolbar control.

Definition at line 84 of file newtoolbar.h.

#define NTBIF_CHECKED   0x0020

The item is checked.

Definition at line 156 of file newtoolbar.h.

#define NTBIF_DISABLED   0x0010

The item is disabled.

Definition at line 151 of file newtoolbar.h.

Typedef Documentation

typedef void(* HOTSPOTPROC)(HWND hwnd, int id, const RECT *cell, int x, int y)

Type of the hotspot-clicked callback procedure.

Parameters
hwndThe handle to the control.
idThe identifier of the button in the NewToolBar control.
cellThe rectangle of the button in screen coordinates.
xThe x-coordinate of the mouse down point.
yTHe y-coordinate of the mouse down point.

Definition at line 133 of file newtoolbar.h.

typedef struct _NTBINFO NTBINFO

Structure of the newtoolbar control information

typedef struct _NTBITEMINFO NTBITEMINFO

Structure of the new toolbar item info

Data type of pointer to a NTBITEMINFO;.

Definition at line 228 of file newtoolbar.h.