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

Macros

#define CBS_BMP_16X16   0x0000
 The size of the item bitmap is 16x16. More...
 
#define CBS_BMP_32X32   0x0001
 The size of the item bitmap is 32x32. More...
 
#define CBS_BMP_CUSTOM   0x0002
 The item bitmap has customized size. More...
 
#define CBS_USEBKBMP   0x0004
 The control has a background bitmap. More...
 

Detailed Description

Macro Definition Documentation

◆ CBS_BMP_16X16

#define CBS_BMP_16X16   0x0000

The size of the item bitmap is 16x16.

Definition at line 148 of file coolbar.h.

◆ CBS_BMP_32X32

#define CBS_BMP_32X32   0x0001

The size of the item bitmap is 32x32.

Definition at line 154 of file coolbar.h.

◆ CBS_BMP_CUSTOM

#define CBS_BMP_CUSTOM   0x0002

The item bitmap has customized size.

Note
For the control with this style, you should pass the width and the height of the item bitmap by the argument dwAddData of CreateWindowEx function.
int item_width = 20;
int item_height = 20;
CreateWindowEx (CTRL_COOLBAR, ..., MAKELONG (item_width, item_height)));

Definition at line 171 of file coolbar.h.

◆ CBS_USEBKBMP

#define CBS_USEBKBMP   0x0004

The control has a background bitmap.

Note
For a CoolBar control with this style, you should pass the bitmap file name by the argument spCaption of CreateWindowEx function.
const char* file_bkgnd = "res/my_bkgnd.gif";
CreateWindowEx (CTRL_COOLBAR, file_bkgnd, ...);

Definition at line 186 of file coolbar.h.

CTRL_COOLBAR
#define CTRL_COOLBAR
The class name of coolbar control.
Definition: coolbar.h:84
MAKELONG
#define MAKELONG(low, high)
Makes a double word with pointer precision from low word and high word.
Definition: common.h:853
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