MiniGUI API Reference (MiniGUI-Processes)  v3.2.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

#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.

1 STM_GETIMAGE
2 wParam = 0;
3 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 275 of file static.h.

#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.

1 STM_SETIMAGE
2 HICON image;
3  or
4 BITMAP* image;
5 
6 wParam = (WPARAM)image;
7 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 257 of file static.h.