MiniGUI API Reference (MiniGUI-Threads)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | MSG_COMMAND 0x0120 |
The command message, indicates a notification message from child window, or the user has selected a menu item. More... | |
#define | MSG_SYSCOMMAND 0x0121 |
The system command message. More... | |
#define | MSG_GETDLGCODE 0x0122 |
Get dialog code. More... | |
#define | MSG_INITDIALOG 0x0123 |
Ready to initialize the controls in a dialog box. More... | |
#define | MSG_DLG_GETDEFID 0x0126 |
Get default push button ID first. More... | |
#define | MSG_DLG_SETDEFID 0x0127 |
Set default push button ID first. More... | |
#define | MSG_ISDIALOG 0x0128 |
Sends to a window to query whether the window is a dialog window. More... | |
#define | MSG_INITPAGE 0x0129 |
Ready to initialize the controls in a property page. More... | |
#define | MSG_SHOWPAGE 0x012A |
Indicates the page will be shown or hidden. More... | |
#define | MSG_SHEETCMD 0x012B |
Indicates that a PSM_SHEETCMD message had been sent to the PropertySheet control. More... | |
#define | MSG_INITCONTAINER 0x012C |
This message will be sent to the container window procedure after the container window is created. More... | |
#define | MSG_SVCONTCMD 0x012D |
This message will be sent to the parent of the ScrollView control when the container of the ScrollView control reveived a MSG_COMMAND message. More... | |
#define | MSG_FREEZECTRL 0x012E |
You can send this message to freeze or thaw the paint action of the control. More... | |
#define | MSG_FONTCHANGING 0x0130 |
Indicates the user is trying to change the font of the window. More... | |
#define | MSG_FONTCHANGED 0x0131 |
Indicates the window font has been changed. More... | |
#define | MSG_GETTEXTLENGTH 0x0132 |
Sent to the control to get the length of the text. More... | |
#define | MSG_GETTEXT 0x0133 |
Sent to the control to get the text. More... | |
#define | MSG_SETTEXT 0x0134 |
Sent to the control to set the text. More... | |
#define | MSG_ENABLE 0x0135 |
Indicates the window is disabled/enabled. More... | |
#define MSG_COMMAND 0x0120 |
The command message, indicates a notification message from child window, or the user has selected a menu item.
This message sent to the window when the user has selected a menu item, or a child window has sent a notification message to the parent.
id | The identifier of the menu item or the child window. |
code | The notification code. |
hwnd | The handle to the control. |
MSG_COMMAND
message to handle the notification sent from children controls, you should make sure the identifier value is small enough on 64-bit platform. If you use a pointer as the the identifier of a control, the code above will not work.Instead, we recommend strongly that you use a NOTIFYPOROC callback to handle the notification generated by controls.
#define MSG_DLG_GETDEFID 0x0126 |
#define MSG_DLG_SETDEFID 0x0127 |
#define MSG_ENABLE 0x0135 |
#define MSG_FONTCHANGED 0x0131 |
#define MSG_FONTCHANGING 0x0130 |
Indicates the user is trying to change the font of the window.
This message is sent to the window when the user is trying to change the font of the window by calling SetWindowFont. If you return non-zero after handling this message, SetWindowFont will return immediately, i.e., the default window font will not change.
log_font | The pointer to the new window logical font. |
#define MSG_FREEZECTRL 0x012E |
#define MSG_GETTEXT 0x0133 |
Sent to the control to get the text.
This message is sent to the control when you calling GetWindowText function to get the text.
max_len | The maximal number of characters can be copied to the buffer. |
text_buf | The pointer to a buffer receives the text. |
#define MSG_GETTEXTLENGTH 0x0132 |
Sent to the control to get the length of the text.
This message is sent to the control when you calling GetWindowTextLength function to get the lenght of the text.
#define MSG_INITCONTAINER 0x012C |
This message will be sent to the container window procedure after the container window is created.
This message is sent to the container in order that you can initialize the controls in the container.
add_data | The additional data in CONTAINERINFO structure passed through the argument of dwAddData when creating the ScrollView control by calling CreateWindowEx. |
#define MSG_INITDIALOG 0x0123 |
Ready to initialize the controls in a dialog box.
This message is sent to the dialog in order that you can initialize the controls in the dialog box.
focus_hwnd | The handle to the control which will gain the input focus. |
lparam | The parameter passed into the dialog box through DialogBoxIndirectParam function. |
Example:
#define MSG_INITPAGE 0x0129 |
Ready to initialize the controls in a property page.
This message is sent to the page in order that you can initialize the controls in the page.
add_data | The additional data in DLGTEMPLATE structure passed through PSM_ADDPAGE message. |
#define MSG_ISDIALOG 0x0128 |
#define MSG_SETTEXT 0x0134 |
Sent to the control to set the text.
This message is sent to the control when you calling SetWindowText function to set the text.
text_buf | The pointer to a buffer contains the text. |
#define MSG_SHEETCMD 0x012B |
Indicates that a PSM_SHEETCMD message had been sent to the PropertySheet control.
This message is sent to the property page when the property sheet contains the page received the PSM_SHEETCMD message.
param1 | The wParam of PSM_SHEETCMD message. |
param2 | The lParam of PSM_SHEETCMD message. |
#define MSG_SHOWPAGE 0x012A |
Indicates the page will be shown or hidden.
This message is sent to the page when the page will be shown or hidden.
focus_hwnd | The handle to the child which will gain the input focus if showing the page. |
show_cmd | The show command, can be one of the following values:
|
#define MSG_SVCONTCMD 0x012D |
This message will be sent to the parent of the ScrollView control when the container of the ScrollView control reveived a MSG_COMMAND message.
This message will be sent to the parent of the ScrollView when the container of the ScrollView control reveived a MSG_COMMAND message. Generally, the notification of the child control in the container will be sent via MSG_COMMAND to the container. If you have not defined your own window procedure for the container, this message gives a chance for the parent of the ScrollView control to handle the notifications come from the controls in the container.
Note that you can also define your window procedure for the container, and handle the notification from the child control in this procedure.
param1 | The wParam of MSG_COMMAND message. |
param2 | The lParam of MSG_COMMAND message. |