.第四讲:鼠标l 只要鼠标跨越窗口,或者在某窗口中按下鼠标按钮,那么窗口过程函数就会收到鼠标消息,而不管该窗口是否为活动窗口和是否拥有输入焦点窗口。l 鼠标消息:1. lParam是相对于客户区左上角的坐标,其中X坐标:LOWORD(lParam)Y坐标:HIWORD(lParam)2. wParam是Shift键和Ctrl键或鼠标按钮的状态,若wParam & MK_SHIFT0wParam & MK_CONTROL0wParam & MK_LBUTTON0wParam & MK_MBUTTON0wParam & MK_RBUTTON0表示在产生相应的鼠标消息时,也按下了Shift键和Ctrl键或鼠标按钮。WM_LBUTTONDOWN WM_MBUTTONDOWN WM_RBUTTONDOWN WM_LBUTTONUPWM_RBUTTONUPWM_MBUTTONUPWM_LBUTTONDBLCLKWM_MBUTTONDBLCLKWM_RBUTTONDBLCLKWM_