public void DecorationMouseUp(HitTestValues hit, Point p) { NativeMethods.ReleaseCapture(); var pt = new POINTS { X = (short)p.X, Y = (short)p.Y }; NativeMethods.SendMessage(Handle, (int)WindowMessages.WM_NCLBUTTONUP, (int)hit, pt); }
public static extern int SendMessage(IntPtr hwnd, int msg, int wparam, POINTS pos);