Files
Shrlalgo.RvKits/WPFDark/Internals/GuiHelper.cs

24 lines
475 B
C#
Raw Normal View History

2025-07-11 09:20:23 +08:00
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);
}
}