MiniGUI API Reference (MiniGUI-Standalone)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Modules | |
Notification codes of srollbar control | |
Macros | |
#define | MSG_SETCURSOR 0x0020 |
Sets cursor shape in the client area. More... | |
#define | MSG_NCHITTEST 0x0021 |
Hit test in non-client area. This is an async message. More... | |
#define | MSG_HITTEST MSG_NCHITTEST |
Hit test in non-client area. More... | |
#define | MSG_CHANGESIZE 0x0022 |
Change window size. More... | |
#define | MSG_QUERYCLIENTAREA 0x0024 |
Query client area. More... | |
#define | MSG_SIZECHANGING 0x0025 |
Indicates the size of the window is being changed. More... | |
#define | MSG_SIZECHANGED 0x0026 |
Indicates the size of the window has been changed. More... | |
#define | MSG_CSIZECHANGED 0x0027 |
Indicates the size of the client area of the window has been changed. More... | |
#define | MSG_SETFOCUS 0x0030 |
Indicates that the window has gained the input focus. More... | |
#define | MSG_KILLFOCUS 0x0031 |
Indicates that the window has lost the input focus. More... | |
#define | MSG_MOUSEACTIVE 0x0032 |
Indicates that the window has gained the input focus because the user clicked the window. More... | |
#define | MSG_ACTIVE 0x0033 |
Indicates that the window has gained the input focus because the user clicked the window. More... | |
#define | MSG_CHILDHIDDEN 0x0034 |
Hide child window. More... | |
#define | MSG_ACTIVEMENU 0x0040 |
Indicates that the user activates the menu bar and tracks it. More... | |
#define | MSG_DEACTIVEMENU 0x0041 |
Indicates the end of the tracking of a menu bar or a popup menu. More... | |
#define | MSG_HSCROLL 0x0042 |
Indicates that the user has clicked the horizontal scroll bar. More... | |
#define | MSG_VSCROLL 0x0043 |
Indicates that the user has clicked the vertical scroll bar. More... | |
#define | MSG_NCSETCURSOR 0x0044 |
Sets cursor shape in the non-client area. More... | |
#define | MSG_MOUSEMOVEIN 0x0050 |
Indicates the mouse is moved in/out the area of the window. More... | |
#define | MSG_WINDOWDROPPED 0x0051 |
Indicates that user dropped window. server to client; (wParam, lParam): result rectangle. More... | |
#define MSG_ACTIVE 0x0033 |
#define MSG_ACTIVEMENU 0x0040 |
Indicates that the user activates the menu bar and tracks it.
This message is sent to the window procedure when the user activates the menu bar and tracks it.
If you want to change the states of menu items in the submenu before displaying it, you can handle this message.
pos | The position of the activated submenu. The position value of the first submenu is 0. |
submenu | The handle to the activated submenu. |
Example:
#define MSG_CSIZECHANGED 0x0027 |
Indicates the size of the client area of the window has been changed.
This message is sent as a notification to the window when the size of the client area has been changed.
client_width | The width of the client area. |
client_height | The height of the client area. |
#define MSG_DEACTIVEMENU 0x0041 |
Indicates the end of the tracking of a menu bar or a popup menu.
This message is sent to the window procedure when the user has closed the tracking menu bar or popup menu.
menubar | The handle to the menu bar. It will be zero when the deactivated menu is a popup menu. |
submenu | The handle to the submenu. |
#define MSG_HITTEST MSG_NCHITTEST |
#define MSG_HSCROLL 0x0042 |
Indicates that the user has clicked the horizontal scroll bar.
This message is sent to the window procedure when the user has clicked the horizontal scroll bar and changed the position of the thumb.
hs_nc | The scrolling code, can be one of the following values:
|
#define MSG_KILLFOCUS 0x0031 |
#define MSG_MOUSEACTIVE 0x0032 |
#define MSG_MOUSEMOVEIN 0x0050 |
Indicates the mouse is moved in/out the area of the window.
This message is posted to the window when the user moves the mouse in/out the area of the window.
in_out | Indicates whether the mouse has been moved in the window or out the window. |
#define MSG_NCHITTEST 0x0021 |
#define MSG_NCSETCURSOR 0x0044 |
Sets cursor shape in the non-client area.
This message is posted to the window under the cursor when the user moves the mouse in order to give the chance to change the cursor shape. The default handler set the cursor shape to the default cursor of the window. If you set a new cursor shape, your message handler should return immediately.
#define MSG_SETCURSOR 0x0020 |
Sets cursor shape in the client area.
This message is posted to the window under the cursor when the user moves the mouse in order to give the chance to change the cursor shape. The default handler set the cursor shape to the default cursor of the window. If you set a new cursor shape, your message handler should return immediately.
cx,cy | The client coordinates of the cursor. |
Example:
#define MSG_SETFOCUS 0x0030 |
#define MSG_SIZECHANGED 0x0026 |
Indicates the size of the window has been changed.
This message is sent to the window when the size has been changed. If you want adjust the size of the client area of the window, you should handle this message, change the values of the client area, and return non-zero value to indicate that the client area has been modified.
rcClient | The pointer to a RECT structure which contains the new client area. |
Example:
#define MSG_SIZECHANGING 0x0025 |
Indicates the size of the window is being changed.
This message is sent to the window when the size is being changed. If you want to control the actual position and size of the window when the size is being changed (this may be caused by MoveWindow or other functions), you should handle this message, and return the actual position and size of the window through the second parameter.
rcExpect | The expected size of the window after changing. |
rcResult | The actual size of the window after changing. |
Example:
#define MSG_VSCROLL 0x0043 |
Indicates that the user has clicked the vertical scroll bar.
This message is sent to the window procedure when the user has clicked the vertical scroll bar and changed the position of the thumb.
vs_nc | The scrolling code, can be one of the following values:
|