MiniGUI API Reference (MiniGUI-Standalone)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Window painting messages

Macros

#define MSG_SHOWWINDOW   0x00A0
 Indicates that the window has been shown or hidden. More...
 
#define MSG_MOVEWINDOW   0x00A1
 Indicates that the window has been moved. More...
 
#define MSG_ERASEBKGND   0x00B0 /* this is an async message */
 Sent to the window to erase the background. More...
 
#define MSG_PAINT   0x00B1
 Sent to the window if the window contains an invalid region. More...
 
#define MSG_NCPAINT   0x00B2
 Indicates that paints non-client area. More...
 
#define MSG_NCACTIVATE   0x00B3
 Indicates that active non-client area of main window. More...
 
#define MSG_SYNCPAINT   0x00B4
 Indicates that actives and paints main window synchronously. More...
 

Detailed Description

Macro Definition Documentation

◆ MSG_ERASEBKGND

#define MSG_ERASEBKGND   0x00B0 /* this is an async message */

Sent to the window to erase the background.

This message is sent to the window if the whole or a part of the background should be erased.

HDC hdc = (HDC)wParam;
const RECT* inv_rect = (const RECT*)lParam;
Parameters
hdcThe device context.
inv_rectThe pointer to a RECT structure contains the rectangle should be erase. The rectangle is in client coordinates system. If it is NULL, the whole client area should be erased.

Definition at line 2112 of file window.h.

◆ MSG_MOVEWINDOW

#define MSG_MOVEWINDOW   0x00A1

Indicates that the window has been moved.

This message is sent to the window as a notification after the window has been moved (due to the calling of the function MoveWindow).

int lx = LOSWORD(wParam);
int ty = HISWORD(wParam);
int rx = LOSWORD(lParam);
int by = HISWORD(lParam);
Parameters
lx,ty,rx,byThe new rectangle coordinates of the window.
See also
MoveWindow

Since 5.0.0

Definition at line 2092 of file window.h.

◆ MSG_NCACTIVATE

#define MSG_NCACTIVATE   0x00B3

Indicates that active non-client area of main window.

Definition at line 2150 of file window.h.

◆ MSG_NCPAINT

#define MSG_NCPAINT   0x00B2

Indicates that paints non-client area.

HDC hdc = (HDC)wParam;
const RECT* inv_rect = (const RECT*)lParam;
Parameters
hdcThe device context.
inv_rectThe pointer to a RECT structure contains the rectangle should be paint. The rectangle is in client coordinates system. If it is NULL, the whole nc client area should be paint.

Definition at line 2144 of file window.h.

◆ MSG_PAINT

#define MSG_PAINT   0x00B1

Sent to the window if the window contains an invalid region.

This message is sent to the window if the window contains an invalid region.

const CLIPRGN* inv_rgn = (const CLIPRGN*) lParam;
Parameters
inv_rgnThe pointer to the invalid region of the window.

Definition at line 2127 of file window.h.

◆ MSG_SHOWWINDOW

#define MSG_SHOWWINDOW   0x00A0

Indicates that the window has been shown or hidden.

This message is sent to the window as a notification after the window has been shown or hidden (due to the calling of the function ShowWindow).

int show_cmd = (int)wParam;
Parameters
show_cmdThe command to show or hide, can be one of the following values:
  • SW_SHOW
    Shows the window.
  • SW_HIDE
    Hides the window.
  • SW_SHOWNORMAL
    Shows the window, and if the window is a main window sets it to be the topmost main window in its z-node level.
See also
ShowWindow

Definition at line 2069 of file window.h.

◆ MSG_SYNCPAINT

#define MSG_SYNCPAINT   0x00B4

Indicates that actives and paints main window synchronously.

Definition at line 2156 of file window.h.

HDC
GHANDLE HDC
Handle to device context.
Definition: common.h:412
HISWORD
#define HISWORD(l)
Returns the high signed word of the double word l.
Definition: common.h:837
_RECT
Definition: common.h:936
MSG_PAINT
#define MSG_PAINT
Sent to the window if the window contains an invalid region.
Definition: window.h:2127
MSG_ERASEBKGND
#define MSG_ERASEBKGND
Sent to the window to erase the background.
Definition: window.h:2112
LOSWORD
#define LOSWORD(l)
Returns the low signed word of the double word l.
Definition: common.h:830
_CLIPRGN
Definition: gdi.h:780
MSG_NCPAINT
#define MSG_NCPAINT
Indicates that paints non-client area.
Definition: window.h:2144
MSG_SHOWWINDOW
#define MSG_SHOWWINDOW
Indicates that the window has been shown or hidden.
Definition: window.h:2069
MSG_MOVEWINDOW
#define MSG_MOVEWINDOW
Indicates that the window has been moved.
Definition: window.h:2092