Browse Source

win32 obey can resize when use relies on BeginResizeDrag

pull/7755/head
Dan Walmsley 5 years ago
parent
commit
430792681d
  1. 9
      src/Windows/Avalonia.Win32/WindowImpl.cs

9
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -633,13 +633,16 @@ namespace Avalonia.Win32
public void BeginResizeDrag(WindowEdge edge, PointerPressedEventArgs e)
{
if (_windowProperties.IsResizable)
{
#if USE_MANAGED_DRAG
_managedDrag.BeginResizeDrag(edge, ScreenToClient(MouseDevice.Position.ToPoint(_scaling)));
#else
_mouseDevice.Capture(null);
DefWindowProc(_hwnd, (int)WindowsMessage.WM_NCLBUTTONDOWN,
new IntPtr((int)s_edgeLookup[edge]), IntPtr.Zero);
_mouseDevice.Capture(null);
DefWindowProc(_hwnd, (int)WindowsMessage.WM_NCLBUTTONDOWN,
new IntPtr((int)s_edgeLookup[edge]), IntPtr.Zero);
#endif
}
}
public void SetTitle(string title)

Loading…
Cancel
Save