|
|
Indicates that the window has gained the input focus because the user clicked the window. This message is sent to the window procedure after the user clicked the window and it has gained the input focus. |
|
|
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.
MSG_ACTIVEMENU int pos = (int)wParam; HMENU submenu = (HMENU)lParam;
/* * This handler checks the specified menu items to contain * a radio bitmap by calling CheckMenuRadioItem function, * if the submenu at position 2 has been activated. */ case MSG_ACTIVEMENU: if (wParam == 2) { CheckMenuRadioItem ((HMENU)lParam, IDM_40X15, IDM_CUSTOMIZE, pConInfo->termType, MF_BYCOMMAND); CheckMenuRadioItem ((HMENU)lParam, IDM_DEFAULT, IDM_BIG5, pConInfo->termCharset, MF_BYCOMMAND); } break; |
|
|
Change window size.
|
|
|
Hide child window.
|
|
|
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.
MSG_CSIZECHANGED int client_width = (int)wParam; int client_height = (int)lParam;
|
|
|
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.
MSG_DEACTIVEMENU HMENU menubar = (HMENU)wParam; HMENU submenu = (HMENU)lParam;
|
|
|
Hit test in non-client area.
|
|
|
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.
MSG_HSCROLL int hs_nc = (int)wParam;
|
|
|
Indicates that the window has lost the input focus. This message is sent to the window procedure after the window losts the input focus. |
|
|
Indicates that the window has gained the input focus because the user clicked the window. This message is sent to the window procedure after the user clicked the window and it has gained the input focus. |
|
|
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.
MSG_MOUSEMOVEIN BOOL in_out = (BOOL)wParam;
|
|
|
Hit test in non-client area. This is an async message.
|
|
|
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.
|
|
|
Query client area.
|
|
|
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.
MSG_SETCURSOR int cx = LOSWORD (lParam); int cy = HISWORD (lParam);
/* * The following MSG_SETCURSOR handler set the cursor * shape to the arrow cursor when the window is disabled. */ case MSG_SETCURSOR: if (GetWindowStyle (hwnd) & WS_DISABLED) { SetCursor (GetSystemCursor (IDC_ARROW)); return 0; } break;
|
|
|
Indicates that the window has gained the input focus. This message is sent to the window procedure after the window gains the input focus. |
|
|
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.
MSG_SIZECHANGED RECT* rcClient = (RECT*)lParam;
|
|
|
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.
MSG_SIZECHANGING const RECT* rcExpect = (const RECT*)wParam; RECT* rcResult = (RECT*)lParam;
/* * The handler set the actual size of the window always * to be _WIDTH wide and _HEIGHT high. */ case MSG_SIZECHANGING: { const RECT* rcExpect = (const RECT*)wParam; RECT* rcResult = (RECT*)lParam; rcResult->left = rcExpect->left; rcResult->top = rcExpect->top; rcResult->right = rcExpect->left + _WIDTH; rcResult->bottom = rcExpect->top + _HEIGHT; return 0; } |
|
|
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.
MSG_HSCROLL int vs_nc = (int)wParam;
|
|
|
Indicates that user dropped window. server to client; (wParam, lParam): result rectangle.
|
1.4.2