make some projects compatible with netframework4.8 again
This commit is contained in:
@@ -225,7 +225,7 @@ internal class HighlightPanel : Control
|
||||
Pilz.Win32.Native.User32.GetWindowRect(control.Handle, ref rect);
|
||||
var pp = control.Parent.PointToClient(new Point(rect.Left + 3, rect.Top + 3));
|
||||
var handle = Pilz.Win32.Native.User32.ChildWindowFromPointEx(control.Parent.Handle, new Pilz.Win32.Native.POINT(pp.X, pp.Y), (uint)Pilz.Win32.Native.WindowFromPointFlags.CWP_SKIPINVISIBLE);
|
||||
if (handle == nint.Zero)
|
||||
if (handle == IntPtr.Zero)
|
||||
return control.Visible;
|
||||
var c = Control.FromHandle(handle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user