MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of coolbar control

Macros

#define CBM_ADDITEM   0xFE00
 Adds a new item in a coolbar control. More...
 
#define CBM_ENABLE   0xFE01
 Set an item to be enabled or disabled. More...
 

Detailed Description

Macro Definition Documentation

◆ CBM_ADDITEM

#define CBM_ADDITEM   0xFE00

Adds a new item in a coolbar control.

COOLBARITEMINFO *newIteminfo;
wParam = 0;
lParam = (LPARAM)newIteminfo;
Parameters
newIteminfoPointer to the item info structure of the new item to be added.
Returns
Zero when success, otherwise less than 0;

Definition at line 212 of file coolbar.h.

◆ CBM_ENABLE

#define CBM_ENABLE   0xFE01

Set an item to be enabled or disabled.

int id;
BOOL enabled;
wParam = (WPARAM)id;
lParam = (LPARAM)enabled;
Parameters
idThe identifier of the item to change.
enabledTRUE to enable the item, FALSE to disable the item.
Returns
Zero when success, otherwise less than 0.

Definition at line 232 of file coolbar.h.

WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
BOOL
int BOOL
A type definition for boolean value.
Definition: common.h:343
_COOLBARITEMINFO
Definition: coolbar.h:91
CBM_ADDITEM
#define CBM_ADDITEM
Adds a new item in a coolbar control.
Definition: coolbar.h:212
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712
CBM_ENABLE
#define CBM_ENABLE
Set an item to be enabled or disabled.
Definition: coolbar.h:232