PInvoke

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

Submitted by aaron on Mon, 02/09/2009 - 18:47

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

Copyright © 2011, Aaron Blondeau

Drupal theme by Kiwi Themes.