MiniGUI API Reference (MiniGUI-Threads)  v3.2.0
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

#define CBS_BMP_16X16   0x0000

The size of the item bitmap is 16x16.

Definition at line 136 of file coolbar.h.

#define CBS_BMP_32X32   0x0001

The size of the item bitmap is 32x32.

Definition at line 142 of file coolbar.h.

#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.
1 int item_width = 20;
2 int item_height = 20;
3 
4 CreateWindowEx (CTRL_COOLBAR, ..., MAKELONG (item_width, item_height)));

Definition at line 159 of file coolbar.h.

#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.
1 const char* file_bkgnd = "res/my_bkgnd.gif";
2 
3 CreateWindowEx (CTRL_COOLBAR, file_bkgnd, ...);

Definition at line 174 of file coolbar.h.