c++ - Is there a convenience function in win32 (windows.h) that would convert lParam to POINT? -
i keep doing 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 convenience method convert loword(lparam)
, hiword(lparam)
point
me? mouse = topoint(lparam)
?
no, trivial roll own:
point topoint(lparam lparam) { point p={get_x_lparam(lparam),get_y_lparam(lparam)}; return p; }
Comments
Post a Comment