MiniGUI API Reference (MiniGUI-Processes)
v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
include
ctrl
newtoolbar.h
Go to the documentation of this file.
1
//
3
// IMPORTANT NOTICE
4
//
5
// The following open source license statement does not apply to any
6
// entity in the Exception List published by FMSoft.
7
//
8
// For more information, please visit:
9
//
10
// https://www.fmsoft.cn/exception-list
11
//
13
55
/*
56
* $Id: newtoolbar.h 10690 2008-08-18 09:32:47Z weiym $
57
*
58
* MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59
* pSOS, ThreadX, NuCleus, OSE, and Win32.
60
*/
61
62
#ifndef _MGUI_CTRL_NEWTOOLBAR_H
63
#define _MGUI_CTRL_NEWTOOLBAR_H
64
65
66
#ifdef __cplusplus
67
extern
"C"
{
68
#endif
/* __cplusplus */
69
96
#define CTRL_NEWTOOLBAR ("newtoolbar")
97
99
typedef
struct
_NTBINFO
100
{
102
PBITMAP
image
;
103
105
int
nr_cells
;
106
119
int
nr_cols
;
120
125
int
w_cell
;
126
131
int
h_cell
;
132
133
}
NTBINFO
;
134
145
typedef
void (*
HOTSPOTPROC
)(
HWND
hwnd,
int
id,
const
RECT
* cell,
int
x,
int
y);
146
147
/* Internal */
148
#define NTB_TEXT_LEN 15
149
/* Internal */
150
#define NTB_TIP_LEN 255
151
152
#define NTBIF_PUSHBUTTON 0x0001
153
#define NTBIF_HOTSPOTBUTTON 0x0002
154
#define NTBIF_SEPARATOR 0x0003
155
#define NTBIF_CHECKBUTTON 0x0005
156
#define NTBIF_NEWLINE 0x0008
157
#define NTBIF_TYPEMASK 0x000F
158
163
#define NTBIF_DISABLED 0x0010
164
168
#define NTBIF_CHECKED 0x0020
169
170
#define MTB_WHICH_FLAGS 0x0001
171
#define MTB_WHICH_ID 0x0002
172
#define MTB_WHICH_TEXT 0x0004
173
#define MTB_WHICH_TIP 0x0008
174
#define MTB_WHICH_CELL 0x0010
175
#define MTB_WHICH_HOTSPOT 0x0020
176
#define MTB_WHICH_ADDDATA 0x0040
177
179
typedef
struct
_NTBITEMINFO
180
{
193
DWORD
which
;
194
205
DWORD
flags
;
206
212
int
id
;
213
218
char
*
text
;
219
221
char
*
tip
;
222
224
int
bmp_cell
;
225
227
HOTSPOTPROC
hotspot_proc
;
228
230
RECT
rc_hotspot
;
231
233
DWORD
add_data
;
234
}
NTBITEMINFO
;
235
240
typedef
NTBITEMINFO
*
PNTBITEMINFO
;
241
251
#define NTBS_WITHTEXT 0x000000001L
252
257
#define NTBS_TEXTRIGHT 0x000000002L
258
264
#define NTBS_DRAWSTATES 0x000000004L
265
270
#define NTBS_DRAWSEPARATOR 0x000000008L
271
276
#define NTBS_HORIZONTAL 0x00000000L
277
282
#define NTBS_VERTICAL 0x00000010L
283
290
#define NTBS_MULTLINE 0x00000020L
291
299
#define NTB_OKAY 0
300
301
#define NTB_ERR (-1)
302
303
#define NTB_ERR_SPACE (-2)
304
305
#define NTB_ERR_DUPID (-3)
306
325
#define NTBM_ADDITEM 0xFE00
326
345
#define NTBM_GETITEM 0xFE01
346
365
#define NTBM_SETITEM 0xFE02
366
385
#define NTBM_ENABLEITEM 0xFE03
386
403
#define NTBM_SETBITMAP 0xFE04
404
405
406
#define NTBM_MSGMAX 0xFE10
407
414
#ifdef __cplusplus
415
}
416
#endif
/* __cplusplus */
417
418
#endif
/* _MGUI_CTRL_NEWTOOLBAR_H */
419
HOTSPOTPROC
void(* HOTSPOTPROC)(HWND hwnd, int id, const RECT *cell, int x, int y)
Type of the hotspot-clicked callback procedure.
Definition:
newtoolbar.h:145
_NTBITEMINFO::hotspot_proc
HOTSPOTPROC hotspot_proc
Definition:
newtoolbar.h:227
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition:
common.h:604
_NTBINFO::h_cell
int h_cell
Definition:
newtoolbar.h:131
HWND
GHANDLE HWND
Handle to main window or control.
Definition:
common.h:407
NTBITEMINFO
struct _NTBITEMINFO NTBITEMINFO
NTBINFO
struct _NTBINFO NTBINFO
_NTBINFO
Definition:
newtoolbar.h:99
_RECT
Definition:
common.h:936
_NTBITEMINFO::flags
DWORD flags
Definition:
newtoolbar.h:205
_NTBINFO::w_cell
int w_cell
Definition:
newtoolbar.h:125
_NTBITEMINFO::which
DWORD which
Definition:
newtoolbar.h:193
_NTBITEMINFO::text
char * text
Definition:
newtoolbar.h:218
_NTBITEMINFO::rc_hotspot
RECT rc_hotspot
Definition:
newtoolbar.h:230
_NTBITEMINFO::id
int id
Definition:
newtoolbar.h:212
_NTBITEMINFO::tip
char * tip
Definition:
newtoolbar.h:221
_NTBINFO::nr_cells
int nr_cells
Definition:
newtoolbar.h:105
_NTBITEMINFO::bmp_cell
int bmp_cell
Definition:
newtoolbar.h:224
_NTBINFO::image
PBITMAP image
Definition:
newtoolbar.h:102
_NTBITEMINFO::add_data
DWORD add_data
Definition:
newtoolbar.h:233
_BITMAP
Definition:
gdi.h:11088
PNTBITEMINFO
NTBITEMINFO * PNTBITEMINFO
Data type of pointer to a NTBITEMINFO;.
Definition:
newtoolbar.h:240
_NTBINFO::nr_cols
int nr_cols
Definition:
newtoolbar.h:119
_NTBITEMINFO
Definition:
newtoolbar.h:179
Generated by
1.8.17