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

Detailed Description

Macro Definition Documentation

#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 1237 of file window.h.

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

1 MSG_CREATE for main windows:
2 PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;
3 
4 MSG_CREATE for controls:
5 HWND parent = (HWND)wParam;
6 DWORD add_data = (DWORD)lParam;
Parameters
create_infoThe pointer to the MAINWINCREATE structure which is passed to CreateMainWindow function.
parentThe handle to the parent window of the control.
add_dataThe first additional data passed to CreateWindowEx function.
See also
CreateMainWindow, CreateWindowEx, MAINWINCREATE

Definition at line 1176 of file window.h.

#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 1225 of file window.h.

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

1 MSG_NCCREATE for main windows:
2 PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;
3 
4 MSG_NCCREATE for controls:
5 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 1206 of file window.h.