Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

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 1068 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 1007 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 1056 of file window.h.

#define MSG_MAXIMIZE   0x0068
 

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

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

Definition at line 1080 of file window.h.

#define MSG_MINIMIZE   0x0069
 

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

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

Definition at line 1089 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 1037 of file window.h.


Generated on Mon Jun 26 13:54:32 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2