User32

Creating an lParam value for windows API function calls (C#)

with terms

I recently found a really neat way to create lParam parameters for the Window’s API SendMessage and PostMessage functions. This specifically applies to messages like WM_MOUSEMOVE that require both an x and a y coordinate to be encoded into that single parameter. I had been using code like this :

Syndicate content