|
|
Left mouse button double clicked message. This message is posted to the window when the user double clicks the left button of the mouse in the client area of the window.
MSG_LBUTTONDBLCLK DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Left mouse button down message. This message is posted to the window when the user presses down the left button of the mouse in the client area of the window.
MSG_LBUTTONDOWN DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
/* * This example trys to handle the event when the user presses * left button and right button of the mouse at the same time. */ int MyWinProc (HWND hWnd, int message, WPARAM wParam, LPARAM lParam) { switch (message) { case MSG_LBUTTONDOWN: if (wParam & KS_RIGHTBUTTON) { // Left button and right button both are pressed. break; } break; case MSG_RBUTTONDOWN: if (wParam & KS_LEFTBUTTON) { // Left button and right button both are pressed. break; } break; case MSG_MOUSEMOVE: if (wParam & KS_CTRL) { // User moves the mouse as the <Ctrl> key is down. break; } break; ... } return DefaultMainWinProc (hWnd, message, wParam, lParam); } |
|
|
Left mouse button up message. This message is posted to the window when the user releases up the left button of the mouse in the client area of the window.
MSG_LBUTTONUP DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
The mouse moved message. This message is posted to the window when the user moves the mouse in the client area of the window.
MSG_MOUSEMOVE DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Left mouse button double clicked in the non-client area. This message is posted to the window when the user double clicks the left button of the mouse in the non-client area of the window.
MSG_NCLBUTTONDBLCLK int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Left mouse button down message in the non-client area. This message is posted to the window when the user presses down the left button of the mouse in the non-client area of the window.
MSG_NCLBUTTONDOWN int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Left mouse button up message in the non-client area. This message is posted to the window when the user releases up the left button of the mouse in the non-client area of the window.
MSG_NCLBUTTONUP int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Mouse moves in the non-client area. This message is posted to the window when the user moves the mouse in the non-client area of the window.
MSG_NCMOUSEMOVE int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Right mouse button double clicked in the non-client area. This message is posted to the window when the user double clicks the right button of the mouse in the non-client area of the window.
MSG_NCRBUTTONDBLCLK int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Right mouse button down message in the non-client area. This message is posted to the window when the user presses down the right button of the mouse in the non-client area of the window.
MSG_NCRBUTTONDOWN int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Right mouse button up message in the non-client area. This message is posted to the window when the user releases up the right button of the mouse in the non-client area of the window.
MSG_NCRBUTTONUP int hit_code = (int)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Right mouse button double clicked message. This message is posted to the window when the user double clicks the right button of the mouse in the client area of the window.
MSG_RBUTTONDBLCLK DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
|
|
Right mouse button down message. This message is posted to the window when the user presses down the right button of the mouse in the client area of the window.
MSG_RBUTTONDOWN DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
/* * This example trys to handle the event when the user presses * left button and right button of the mouse at the same time. */ int MyWinProc (HWND hWnd, int message, WPARAM wParam, LPARAM lParam) { switch (message) { case MSG_LBUTTONDOWN: if (wParam & KS_RIGHTBUTTON) { // Left button and right button both are pressed. break; } break; case MSG_RBUTTONDOWN: if (wParam & KS_LEFTBUTTON) { // Left button and right button both are pressed. break; } break; case MSG_MOUSEMOVE: if (wParam & KS_CTRL) { // User moves the mouse as the <Ctrl> key is down. break; } break; ... } return DefaultMainWinProc (hWnd, message, wParam, lParam); } |
|
|
Right mouse button up message. This message is posted to the window when the user releases up the right button of the mouse in the client area of the window.
MSG_RBUTTONUP DWORD key_flags = (DWORD)wParam; int x_pos = LOSWORD (lParam); int y_pos = HISWORD (lParam);
|
1.4.2