|
发表于 2007-9-26 12:23:50
|
显示全部楼层
<p>MSDN里有说明:</p><p>WM_LBUTTONUP<br/>The WM_LBUTTONUP message is posted when the user releases 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. </p><p>WM_LBUTTONUP <br/>fwKeys = wParam; // key flags <br/>xPos = LOWORD(lParam); // horizontal position of cursor <br/>yPos = HIWORD(lParam); // vertical position of cursor </p><p>那么,只需要在发送鼠标消息时按高低位,给出相应的坐标值就可以了.</p> |
|