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

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

1 MSG_ERASEBKGND
2 HDC hdc = (HDC)wParam;
3 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 1331 of file window.h.

#define MSG_NCACTIVATE   0x00B3

Indicates that active non-client area of main window.

Definition at line 1369 of file window.h.

#define MSG_NCPAINT   0x00B2

Indicates that paints non-client area.

1 MSG_NCPAINT
2 HDC hdc = (HDC)wParam;
3 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 1363 of file window.h.

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

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

Definition at line 1346 of file window.h.

#define MSG_SHOWWINDOW   0x00A0

Indicates that the window has been shown or hidden.

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

1 MSG_SHOWWINDOW
2 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.
See also
ShowWindow

Definition at line 1311 of file window.h.

#define MSG_SYNCPAINT   0x00B4

Indicates that actives and paints main window synchronously.

Definition at line 1375 of file window.h.