我一直在做以下事情:
LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) {
mouse.x = LOWORD(lParam);
mouse.y = HIWORD(lParam);
// ...
return 0;
}
我想知道是否有一种方便的方法可以为我转换和LOWORD(lParam)
转换?所以我可以做类似的事情?HIWORD(lParam)
Point
mouse = ToPoint(lParam)