Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.ExtLibs/HeuristicLab.WinFormsUI/2.7.0/WinFormsUI-2.7.0/Docking/Helpers/Win32Helper.cs

Last change on this file was 8616, checked in by mkommend, 12 years ago

#1939: Added DockPanelSuite 2.7.0 to ExtLibs.

File size: 636 bytes
Line 
1using System;
2using System.Drawing;
3using System.Windows.Forms;
4
5namespace WeifenLuo.WinFormsUI.Docking
6{
7    public static class Win32Helper
8    {
9        private static readonly bool _isRunningOnMono = Type.GetType("Mono.Runtime") != null;
10
11        public static bool IsRunningOnMono { get { return _isRunningOnMono; } }
12
13        internal static Control ControlAtPoint(Point pt)
14        {
15            return Control.FromChildHandle(NativeMethods.WindowFromPoint(pt));
16        }
17
18        internal static uint MakeLong(int low, int high)
19        {
20            return (uint)((high << 16) + low);
21        }
22    }
23}
Note: See TracBrowser for help on using the repository browser.