Window creation messages
[Messages]

Defines


Define 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 1184 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.

 MSG_CREATE for main windows:
 PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;

 MSG_CREATE for controls:
 HWND parent = (HWND)wParam;
 DWORD add_data = (DWORD)lParam;
Parameters:
create_info The pointer to the MAINWINCREATE structure which is passed to CreateMainWindow function.
parent The handle to the parent window of the control.
add_data The first additional data passed to CreateWindowEx function.
See also:
CreateMainWindow, CreateWindowEx, MAINWINCREATE

Definition at line 1123 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 1172 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.

 MSG_NCCREATE for main windows:
 PMAINWINCREATE create_info = (PMAINWINCREATE)lParam;

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

Definition at line 1153 of file window.h.

Generated on Thu Apr 7 15:55:38 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3