MiniGUI API Reference (MiniGUI-Standalone)  v4.0.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of static control

Macros

#define STM_SETIMAGE   0xF172
 Associates a new image (icon or bitmap) with a static control. More...
 
#define STM_GETIMAGE   0xF173
 Retrieves a handle to the image. More...
 

Detailed Description

Macro Definition Documentation

◆ STM_GETIMAGE

#define STM_GETIMAGE   0xF173

Retrieves a handle to the image.

An application sends an STM_GETIMAGE message to retrieve a handle to the image associated with a static control.

wParam = 0;
lParam = 0;
Returns
The handle to the icon if the type of static control type is SS_ICON, or the pointer to the BITMAP object if the type is SS_BITMAP.

Definition at line 287 of file static.h.

◆ STM_SETIMAGE

#define STM_SETIMAGE   0xF172

Associates a new image (icon or bitmap) with a static control.

An application sends an STM_SETIMAGE message to associate a new image (icon or bitmap) with a static control.

HICON image;
or
BITMAP* image;
wParam = (WPARAM)image;
lParam = 0;
Parameters
imageThe handle to an icon if the type of static control type is SS_ICON, or the pointer to a BITMAP object if the type is SS_BITMAP.
Returns
The old image (handle or pointer).

Definition at line 269 of file static.h.