Client/Desktop/KMBIM3.0/23.11.03/Utils/WindowHandle.cs

30 lines
595 B
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KMBIM.Revit.Tools.Utils
{
public class WindowWrapper : System.Windows.Forms.IWin32Window
{
private IntPtr _hwnd;
public WindowWrapper(IntPtr handle)
{
Debug.Assert(IntPtr.Zero != handle, "expected non-null window handle");
_hwnd = handle;
}
public IntPtr Handle
{
get
{
return _hwnd;
}
}
}
}