MOUSEEVENTF.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. namespace Microsoft.Win32
  2. {
  3. //MOUSEEVENTF定义
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// Movement occurred.
  8. /// </summary>
  9. public const int MOUSEEVENTF_MOVE = 0x0001;
  10. /// <summary>
  11. /// The left button was pressed.
  12. /// </summary>
  13. public const int MOUSEEVENTF_LEFTDOWN = 0x0002;
  14. /// <summary>
  15. /// The left button was released.
  16. /// </summary>
  17. public const int MOUSEEVENTF_LEFTUP = 0x0004;
  18. /// <summary>
  19. /// The right button was pressed.
  20. /// </summary>
  21. public const int MOUSEEVENTF_RIGHTDOWN = 0x0008;
  22. /// <summary>
  23. /// The right button was released.
  24. /// </summary>
  25. public const int MOUSEEVENTF_RIGHTUP = 0x0010;
  26. /// <summary>
  27. /// The middle button was pressed.
  28. /// </summary>
  29. public const int MOUSEEVENTF_MIDDLEDOWN = 0x0020;
  30. /// <summary>
  31. /// The middle button was released.
  32. /// </summary>
  33. public const int MOUSEEVENTF_MIDDLEUP = 0x0040;
  34. /// <summary>
  35. /// An X button was pressed.
  36. /// </summary>
  37. public const int MOUSEEVENTF_XDOWN = 0x0080;
  38. /// <summary>
  39. /// An X button was released.
  40. /// </summary>
  41. public const int MOUSEEVENTF_XUP = 0x0100;
  42. /// <summary>
  43. /// The wheel was moved, if the mouse has a wheel. The amount of movement is specified in mouseData.
  44. /// </summary>
  45. public const int MOUSEEVENTF_WHEEL = 0x0800;
  46. /// <summary>
  47. /// The wheel was moved horizontally, if the mouse has a wheel. The amount of movement is specified in mouseData.Windows XP/2000: This value is not supported.
  48. /// </summary>
  49. public const int MOUSEEVENTF_HWHEEL = 0x01000;
  50. /// <summary>
  51. /// The WM_MOUSEMOVE messages will not be coalesced. The default behavior is to coalesce WM_MOUSEMOVE messages.Windows XP/2000: This value is not supported.
  52. /// </summary>
  53. public const int MOUSEEVENTF_MOVE_NOCOALESCE = 0x2000;
  54. /// <summary>
  55. /// Maps coordinates to the entire desktop. Must be used with MOUSEEVENTF_ABSOLUTE.
  56. /// </summary>
  57. public const int MOUSEEVENTF_VIRTUALDESK = 0x4000;
  58. /// <summary>
  59. /// The dx and dy members contain normalized absolute coordinates. If the flag is not set, dxand dy contain relative data (the change in position since the last reported position). This flag can be set, or not set, regardless of what kind of mouse or other pointing device, if any, is connected to the system. For further information about relative mouse motion, see the following Remarks section.
  60. /// </summary>
  61. public const int MOUSEEVENTF_ABSOLUTE = 0x8000;
  62. }
  63. }