Skip to content

Commit

Permalink
Added CaptureMouse() for window sync Dirkster99#306
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhahe committed Oct 8, 2021
1 parent e8f2d46 commit 689e458
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -334,6 +334,7 @@ internal void AttachDrag(bool onActivated = true)
}
else
{
CaptureMouse();
var windowHandle = new WindowInteropHelper(this).Handle;
var lParam = new IntPtr(((int)Left & 0xFFFF) | ((int)Top << 16));
Win32Helper.SendMessage(windowHandle, Win32Helper.WM_NCLBUTTONDOWN, new IntPtr(Win32Helper.HT_CAPTION), lParam);
Expand Down

0 comments on commit 689e458

Please sign in to comment.