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 static control

Macros

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

Detailed Description

Macro Definition Documentation

◆ STM_GETIMAGE

#define STM_GETIMAGE   0xF173

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

WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
STM_SETIMAGE
#define STM_SETIMAGE
Associates a new image (icon or bitmap) with a static control.
Definition: static.h:269
HICON
GHANDLE HICON
Handle to icon.
Definition: common.h:427
STM_GETIMAGE
#define STM_GETIMAGE
Retrieve a handle to the image.
Definition: static.h:287
_BITMAP
Definition: gdi.h:11088