Is there a convenience function in win32 (windows.h) that would convert
lParam to POINT?
I keep doing the following:
LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL&
bHandled) {
mouse.x = LOWORD(lParam);
mouse.y = HIWORD(lParam);
// ...
return 0;
}
I wonder if there is a convenience method that will convert LOWORD(lParam)
and HIWORD(lParam) to a Point for me? So I could do something like mouse =
ToPoint(lParam)?
No comments:
Post a Comment