Line | |
---|
1 | using System;
|
---|
2 | using System.Drawing;
|
---|
3 | using System.Windows.Forms;
|
---|
4 |
|
---|
5 | namespace 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.