CURSORINFO.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Microsoft.Win32
  4. {
  5. /// <summary>
  6. /// CURSORINFO定义
  7. /// </summary>
  8. public static partial class NativeMethods
  9. {
  10. /// <summary>
  11. /// 光标信息
  12. /// </summary>
  13. [StructLayout(LayoutKind.Sequential)]
  14. public struct CURSORINFO
  15. {
  16. /// <summary>
  17. /// Specifies the size, in bytes, of the structure. The caller must set this to Marshal.SizeOf(typeof(CURSORINFO)).
  18. /// </summary>
  19. public int cbSize;
  20. /// <summary>
  21. /// Specifies the cursor state. This parameter can be one of the following values:0 The cursor is hidden.1 The cursor is showing.
  22. /// </summary>
  23. public int flags;
  24. /// <summary>
  25. /// Handle to the cursor.
  26. /// </summary>
  27. public IntPtr hCursor;
  28. /// <summary>
  29. /// A POINT structure that receives the screen coordinates of the cursor.
  30. /// </summary>
  31. public POINT ptScreenPos;
  32. }
  33. }
  34. }