tangxu
2024-11-25 0a2c59670b82d61d3fa79f51a54e82e7bd0134c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#region Imports
 
using System;
using System.Runtime.InteropServices;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Util
{
    #region NightUtil
 
    internal class NativeConstants
    {
        internal const int IDC_HAND = 0x7F89;
        internal const int WM_SETCURSOR = 0x0020;
    }
 
    internal static class NativeMethods
    {
        #region Cursor Functions
 
        [DllImport("user32.dll")]
        internal static extern IntPtr LoadCursor(IntPtr hInstance, int lpCursorName);
 
        [DllImport("user32.dll")]
        internal static extern IntPtr SetCursor(IntPtr hCursor);
 
        #endregion
    }
 
    #endregion
}