mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-18 07:51:14 +00:00
c38affcded
* All renderdoc code up to this point was written by me, history is available by request
24 lines
613 B
C#
24 lines
613 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace WeifenLuo.WinFormsUI.Docking
|
|
{
|
|
public static class Win32Helper
|
|
{
|
|
private static readonly bool _isRunningOnMono = Type.GetType("Mono.Runtime") != null;
|
|
|
|
public static bool IsRunningOnMono { get { return _isRunningOnMono; } }
|
|
|
|
internal static Control ControlAtPoint(Point pt)
|
|
{
|
|
return Control.FromChildHandle(NativeMethods.WindowFromPoint(pt));
|
|
}
|
|
|
|
internal static uint MakeLong(int low, int high)
|
|
{
|
|
return (uint)((high << 16) + low);
|
|
}
|
|
}
|
|
}
|