How do I get the coordinates of a WM_NCHITTEST message in C# code?
I\'d love to get the fastest way, because performance is a requirement.
I know this question was already answered and all but...
Point p = new Point(m.LParam.ToInt32());
System.Drawing.Point now has a constructor specifically designed to accept this exact value. Strictly speaking, I think this is probably the easiest way.
To be perfectly honest, I have no idea if this constructor even existed when the other answers were posted.
That all being said, this probably isn't any faster because takrl's answer is almost certainly what the aforementioned constructor does internally anyway.