| 123456789101112131415161718192021222324252627282930313233 |
- /*******************************************************************************
- * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:Win32Helper.cs
- * 2.功能描述:类文件
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 陈晓野 2014/09/01 1.00 新建
- *******************************************************************************/
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Dongke.IBOSS.PRD.Basics.DockPanel
- {
- 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);
- }
- }
- }
|