MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
System messages

Macros

#define MSG_IDLE   0x0142
 Indicates the system enters idle loop. More...
 
#define MSG_TIMER   0x0144
 Indicates a timer has expired. More...
 
#define MSG_FDEVENT   0x0146
 Indicates an event of registered file descriptor occurred. More...
 
#define MSG_SRVNOTIFY   0x0147
 Indicates a notification from the server of MiniGUI-Processes. More...
 
#define MSG_DOESNEEDIME   0x0150
 Sends to a window to query whether the window needs to open IME window. More...
 

Detailed Description

Macro Definition Documentation

#define MSG_DOESNEEDIME   0x0150

Sends to a window to query whether the window needs to open IME window.

The system will send this message when the window gain the input focus to determine whether the window needs to open IME window.

The application should handle this message and return TRUE when the window need IME window. Default window procedure returns FALSE.

Note
This is an asynchronical message.

Definition at line 2094 of file window.h.

#define MSG_FDEVENT   0x0146

Indicates an event of registered file descriptor occurred.

You can use RegisterListenFD to register a file desciptor to MiniGUI-Processes for listening.

When there is a read/write/except event on the fd, MiniGUI will post a MSG_FDEVENT message with wParam being equal to MAKELONG (fd, type), and the lParam being set to be the context to the target window.

1 MSG_FDEVENT
2 int fd = LOWORD(wParam);
3 int type = HIWORD(wParam);
4 void* context = (void*)lParam;
Parameters
fdThe listened file descriptor.
typeThe event type.
contextA context value.
Note
Only available on MiniGUI-Processes.
See also
RegisterListenFD

Definition at line 2058 of file window.h.

#define MSG_IDLE   0x0142

Indicates the system enters idle loop.

This message is sent to the all main windows when the system enters idle loop.

Definition at line 2006 of file window.h.

#define MSG_SRVNOTIFY   0x0147

Indicates a notification from the server of MiniGUI-Processes.

This message will be broadcasted to all of the main windows in a client process when the client receives a MSG_SRVNOTIFY message from the server.

The server, i.e. 'mginit' defines the meaning of two parameters of this message.

Note
Only available on MiniGUI-Processes.

Definition at line 2073 of file window.h.

#define MSG_TIMER   0x0144

Indicates a timer has expired.

This message is sent to the window when a timer expired.

1 MSG_TIMER
2 int timer_id = (int)wParam;
3 DWORD tick_count = (DWORD)lParam;
Parameters
timer_idThe identifier of the timer has expired.
tick_countThe tick count when the timer had expired.

Definition at line 2025 of file window.h.