You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each developer has to go out of their way to implement the MAKEPOINTS, GET_X_LPARAM, GET_Y_LPARAM macros manually when converting C++ code examples to C#. This adds one more point where bugs can be introduced, and slows down porting code due to this special case.
Problem
Each developer has to go out of their way to implement the MAKEPOINTS, GET_X_LPARAM, GET_Y_LPARAM macros manually when converting C++ code examples to C#. This adds one more point where bugs can be introduced, and slows down porting code due to this special case.
These are also some of the most basic and widely used macros, as they are used for handling clicks on forms. They are commonly found in
Hello World
Win32 examples. https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-lbuttonupSolution
Add the macros just like the opposite macros, which already exist, to combine shorts into a single int.
Alternative
Each developer has to go out of their way to implement this macro manually when converting C++ code examples to C#.
The text was updated successfully, but these errors were encountered: