前面說過,Windows Programming 是 Message looping 的機制,所以舉例來說要控制(Input/Output)滑鼠,那就要了解相關的 Messages:
WM_LBUTTONDBLCLK
The user double-clicked the left mouse button.
WM_LBUTTONDOWN
The user pressed the left mouse button.
WM_LBUTTONUP
The user released the left mouse button.
WM_MBUTTONDOWN
The user pressed the middle mouse button.
WM_MBUTTONUP
The user released the middle mouse button.
WM_MOUSEMOVE
The user moved the mouse cursor within the client area of the window.
WM_MOUSEWHEEL
The user rotated or pressed the mouse wheel.
WM_RBUTTONDOWN
The user pressed the right mouse button.
WM_RBUTTONUP
The user released the right mouse button.
不過我搞不懂,若有其他 button 怎麼辦?3D 滑鼠怎麼辦?
2008/08/07
訂閱:
張貼留言 (Atom)
0 意見:
張貼留言