MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
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

◆ CTRL_NEWTOOLBAR

#define CTRL_NEWTOOLBAR   ("newtoolbar")

The class name of newtoolbar control.

Definition at line 96 of file newtoolbar.h.

◆ NTBIF_CHECKED

#define NTBIF_CHECKED   0x0020

The item is checked.

Definition at line 168 of file newtoolbar.h.

◆ NTBIF_DISABLED

#define NTBIF_DISABLED   0x0010

The item is disabled.

Definition at line 163 of file newtoolbar.h.

Typedef Documentation

◆ HOTSPOTPROC

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 145 of file newtoolbar.h.

◆ NTBINFO

typedef struct _NTBINFO NTBINFO

Structure of the newtoolbar control information

◆ NTBITEMINFO

typedef struct _NTBITEMINFO NTBITEMINFO

Structure of the new toolbar item info

◆ PNTBITEMINFO

Data type of pointer to a NTBITEMINFO;.

Definition at line 240 of file newtoolbar.h.

DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
_NTBINFO
Definition: newtoolbar.h:99
CreateWindowEx
static HWND GUIAPI CreateWindowEx(const char *spClassName, const char *spCaption, DWORD dwStyle, DWORD dwExStyle, LINT id, int x, int y, int w, int h, HWND hParentWnd, DWORD dwAddData)
A shortcut version of CreateWindowEx2.
Definition: window.h:9894