Search code examples
winapilparam

Win32. How to convert POINT to LPARAM


I need to send WM_MOUSEWHEEL message. How to convert POINT to LPARAM?


Solution

  • Just use the MAKELPARAM macro

    MAKELPARAM( pt.x, pt.y )