Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123 linhas
5.2 KiB

  1. // This code is distributed under MIT license.
  2. // Copyright (c) 2015 George Mamaladze
  3. // See license.txt or https://mit-license.org/
  4. namespace Gma.System.MouseKeyHook.WinApi
  5. {
  6. internal static class Messages
  7. {
  8. //values from Winuser.h in Microsoft SDK.
  9. /// <summary>
  10. /// The WM_MOUSEMOVE message is posted to a window when the cursor moves.
  11. /// </summary>
  12. public const int WM_MOUSEMOVE = 0x200;
  13. /// <summary>
  14. /// The WM_LBUTTONDOWN message is posted when the user presses the left mouse button
  15. /// </summary>
  16. public const int WM_LBUTTONDOWN = 0x201;
  17. /// <summary>
  18. /// The WM_RBUTTONDOWN message is posted when the user presses the right mouse button
  19. /// </summary>
  20. public const int WM_RBUTTONDOWN = 0x204;
  21. /// <summary>
  22. /// The WM_MBUTTONDOWN message is posted when the user presses the middle mouse button
  23. /// </summary>
  24. public const int WM_MBUTTONDOWN = 0x207;
  25. /// <summary>
  26. /// The WM_LBUTTONUP message is posted when the user releases the left mouse button
  27. /// </summary>
  28. public const int WM_LBUTTONUP = 0x202;
  29. /// <summary>
  30. /// The WM_RBUTTONUP message is posted when the user releases the right mouse button
  31. /// </summary>
  32. public const int WM_RBUTTONUP = 0x205;
  33. /// <summary>
  34. /// The WM_MBUTTONUP message is posted when the user releases the middle mouse button
  35. /// </summary>
  36. public const int WM_MBUTTONUP = 0x208;
  37. /// <summary>
  38. /// The WM_LBUTTONDBLCLK message is posted when the user double-clicks the left mouse button
  39. /// </summary>
  40. public const int WM_LBUTTONDBLCLK = 0x203;
  41. /// <summary>
  42. /// The WM_RBUTTONDBLCLK message is posted when the user double-clicks the right mouse button
  43. /// </summary>
  44. public const int WM_RBUTTONDBLCLK = 0x206;
  45. /// <summary>
  46. /// The WM_RBUTTONDOWN message is posted when the user presses the right mouse button
  47. /// </summary>
  48. public const int WM_MBUTTONDBLCLK = 0x209;
  49. /// <summary>
  50. /// The WM_MOUSEWHEEL message is posted when the user presses the mouse wheel.
  51. /// </summary>
  52. public const int WM_MOUSEWHEEL = 0x020A;
  53. /// <summary>
  54. /// The WM_XBUTTONDOWN message is posted when the user presses the first or second X mouse
  55. /// button.
  56. /// </summary>
  57. public const int WM_XBUTTONDOWN = 0x20B;
  58. /// <summary>
  59. /// The WM_XBUTTONUP message is posted when the user releases the first or second X mouse
  60. /// button.
  61. /// </summary>
  62. public const int WM_XBUTTONUP = 0x20C;
  63. /// <summary>
  64. /// The WM_XBUTTONDBLCLK message is posted when the user double-clicks the first or second
  65. /// X mouse button.
  66. /// </summary>
  67. /// <remarks>Only windows that have the CS_DBLCLKS style can receive WM_XBUTTONDBLCLK messages.</remarks>
  68. public const int WM_XBUTTONDBLCLK = 0x20D;
  69. /// <summary>
  70. /// The WM_MOUSEHWHEEL message Sent to the active window when the mouse's horizontal scroll
  71. /// wheel is tilted or rotated.
  72. /// </summary>
  73. public const int WM_MOUSEHWHEEL = 0x20E;
  74. /// <summary>
  75. /// The WM_KEYDOWN message is posted to the window with the keyboard focus when a non-system
  76. /// key is pressed. A non-system key is a key that is pressed when the ALT key is not pressed.
  77. /// </summary>
  78. public const int WM_KEYDOWN = 0x100;
  79. /// <summary>
  80. /// The WM_KEYUP message is posted to the window with the keyboard focus when a non-system
  81. /// key is released. A non-system key is a key that is pressed when the ALT key is not pressed,
  82. /// or a keyboard key that is pressed when a window has the keyboard focus.
  83. /// </summary>
  84. public const int WM_KEYUP = 0x101;
  85. /// <summary>
  86. /// The WM_SYSKEYDOWN message is posted to the window with the keyboard focus when the user
  87. /// presses the F10 key (which activates the menu bar) or holds down the ALT key and then
  88. /// presses another key. It also occurs when no window currently has the keyboard focus;
  89. /// in this case, the WM_SYSKEYDOWN message is sent to the active window. The window that
  90. /// receives the message can distinguish between these two contexts by checking the context
  91. /// code in the lParam parameter.
  92. /// </summary>
  93. public const int WM_SYSKEYDOWN = 0x104;
  94. /// <summary>
  95. /// The WM_SYSKEYUP message is posted to the window with the keyboard focus when the user
  96. /// releases a key that was pressed while the ALT key was held down. It also occurs when no
  97. /// window currently has the keyboard focus; in this case, the WM_SYSKEYUP message is sent
  98. /// to the active window. The window that receives the message can distinguish between
  99. /// these two contexts by checking the context code in the lParam parameter.
  100. /// </summary>
  101. public const int WM_SYSKEYUP = 0x105;
  102. }
  103. }