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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -