Mouse events (javascript.info)
WM_LBUTTONDBLCLK message
Posted when the user double-clicks the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse. "client area"是不含标题栏、菜单栏和滚动条等的部分。
A window receives this message through its WindowProc function.
The wParam (word parameter) indicates whether various virtual keys are down. The low-order word of lParam (long parameter) the specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area. The high-order word specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area. Word: 16位; Long: 32位。
If an application processes this message, it should return zero.
Use the following code to obtain the horizontal and vertical position: xPos = GET_X_LPARAM(lParam); yPos = GET_Y_LPARAM(lParam);
六级/考研单词: parameter, coordinate, nil, horizon, vertical
浙公网安备 33010602011771号