更新
This commit is contained in:
24
WPFDark/Internals/GuiHelper.cs
Normal file
24
WPFDark/Internals/GuiHelper.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace WPFDark.Internals
|
||||
{
|
||||
internal static class GuiHelper
|
||||
{
|
||||
public static void ShowCursor()
|
||||
{
|
||||
while (ShowCursor(true) < 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public static void HideCursor()
|
||||
{
|
||||
while (ShowCursor(false) >= 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern int ShowCursor(bool bShow);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user