mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-10-02 01:57:23 +13:00
28 lines
734 B
C#
28 lines
734 B
C#
|
// <copyright file="WindowWrapper.cs" company="PlaceholderCompany">
|
|||
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|||
|
// </copyright>
|
|||
|
|
|||
|
namespace SystemTrayMenu.UserInterface.FolderBrowseDialog
|
|||
|
{
|
|||
|
using System;
|
|||
|
|
|||
|
public class WindowWrapper : System.Windows.Forms.IWin32Window
|
|||
|
{
|
|||
|
private readonly IntPtr hwnd;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Initializes a new instance of the <see cref="WindowWrapper"/> class.
|
|||
|
/// </summary>
|
|||
|
/// <param name="handle">Handle to wrap.</param>
|
|||
|
public WindowWrapper(IntPtr handle)
|
|||
|
{
|
|||
|
hwnd = handle;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Gets original ptr.
|
|||
|
/// </summary>
|
|||
|
public IntPtr Handle => hwnd;
|
|||
|
}
|
|||
|
}
|