fixed #886
This commit is contained in:
1 parent
4db1c8a405
commit
a879ebc3b6
2 files changed
+13
No files matched your search
@@ -169,6 +169,18 @@ namespace HandyControl.Controls
|
||||
WmGetMinMaxInfo(hwnd, lparam);
|
||||
Padding = WindowState == WindowState.Maximized ? WindowHelper.WindowMaximizedPadding : _commonPadding;
|
||||
break;
|
||||
case InteropValues.WM_NCHITTEST:
|
||||
// for fixing #886
|
||||
// https://developercommunity.visualstudio.com/t/overflow-exception-in-windowchrome/167357
|
||||
try
|
||||
{
|
||||
_ = lparam.ToInt32();
|
||||
}
|
||||
catch (OverflowException)
|
||||
{
|
||||
handled = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return IntPtr.Zero;
|
||||
|
||||
Reference in new issue
Block a user