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

Macros

#define MSG_CREATE   0x0060
 Indicates the window has been created, and gives you a chance to initialize your private objects. More...
 
#define MSG_NCCREATE   0x0061
 Indicates the window has been created, but has not registered to the system. More...
 
#define MSG_DESTROY   0x0064
 Indicates the window will be destroyed. More...
 
#define MSG_CLOSE   0x0066
 Indicates the user has clicked the closing box on the caption. More...
 
#define MSG_GESTURETEST   0x006B
 This message will be sent to a main window for gesture test. More...
 

Detailed Description

Macro Definition Documentation

◆ MSG_CLOSE

#define MSG_CLOSE   0x0066

Indicates the user has clicked the closing box on the caption.

This message is sent to the window when the user has clicked the closing box on the caption of the window.

Definition at line 1413 of file window.h.

◆ MSG_CREATE

#define MSG_CREATE   0x0060

Indicates the window has been created, and gives you a chance to initialize your private objects.

This messages is sent to the window after the window has been created and registered to the system. You can initialize your own objects when you receive this message, and return zero to the system in order to indicates the success of your initialization. If you return non-zero to the system after handled this message, the created window will be destroyed immediately.

MSG_CREATE for main windows:
HWND hosting = (HWND)wParam;
PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;
MSG_CREATE for virtual windows:
HWND hosting = (HWND)wParam;
DWORD add_data = (DWORD)lParam;
MSG_CREATE for controls:
HWND parent = (HWND)wParam;
DWORD add_data = (DWORD)lParam;
Parameters
create_infoThe pointer to the MAINWINCREATE structure which is passed to CreateMainWindow function.
hostingThe handle to the hosting window of the new main/virtual window.
parentThe handle to the parent window of the new control.
add_dataThe first additional data passed to CreateVirtualWindow or CreateWindowEx function.
See also
CreateMainWindow, CreateVirtualWindow, CreateWindowEx, MAINWINCREATE

Definition at line 1352 of file window.h.

◆ MSG_DESTROY

#define MSG_DESTROY   0x0064

Indicates the window will be destroyed.

This message is sent to the window when DestroyMainWindow or DestroyWindow is calling. You can destroy your private objects when receiving this message.

If you return non-zero to the system after handle this message, the process of DestroyMainWindow and DestroyWindow will return immediately.

See also
DestroyMainWindow, DestroyWindow

Definition at line 1401 of file window.h.

◆ MSG_GESTURETEST

#define MSG_GESTURETEST   0x006B

This message will be sent to a main window for gesture test.

The client should call SetMainWindowGestureFlags to set the gesture flags for a main window after got this message.

Since 5.0.6.

Definition at line 1460 of file window.h.

◆ MSG_NCCREATE

#define MSG_NCCREATE   0x0061

Indicates the window has been created, but has not registered to the system.

This message is sent to the window after the window has been created, but not registered the system. Like MSG_CREATE message, you can initialize your own objects when you receive this message, but can not create child windows of the window, and can not get a device context to paint.

If you return non-zero to the system after handled this message, the created window will be destroyed immediately.

MSG_NCCREATE for main windows:
PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;
MSG_NCCREATE for controls:
DWORD add_data = (DWORD)lParam;
Parameters
create_infoThe pointer to the MAINWINCREATE structure which is passed to CreateMainWindow function.
add_dataThe first additional data passed to CreateWindowEx function.
See also
CreateMainWindow, CreateWindowEx, MAINWINCREATE

Definition at line 1382 of file window.h.

MSG_CREATE
#define MSG_CREATE
Indicates the window has been created, and gives you a chance to initialize your private objects.
Definition: window.h:1352
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
HWND
GHANDLE HWND
Handle to main window or control.
Definition: common.h:407
_MAINWINCREATE
Definition: window.h:6761
MSG_NCCREATE
#define MSG_NCCREATE
Indicates the window has been created, but has not registered to the system.
Definition: window.h:1382