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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -