HT.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. namespace Microsoft.Win32
  2. {
  3. //HT定义,参见winuser.h
  4. public static partial class NativeMethods
  5. {
  6. /// <summary>
  7. /// On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error).
  8. /// </summary>
  9. public const int HTERROR = -2;
  10. /// <summary>
  11. /// In a window currently covered by another window in the same thread (the message will be sent to underlying windows in the same thread until one of them returns a code that is not HTTRANSPARENT).
  12. /// </summary>
  13. public const int HTTRANSPARENT = -1;
  14. /// <summary>
  15. /// On the screen background or on a dividing line between windows.
  16. /// </summary>
  17. public const int HTNOWHERE = 0;
  18. /// <summary>
  19. /// In a client area.
  20. /// </summary>
  21. public const int HTCLIENT = 1;
  22. /// <summary>
  23. /// In a title bar.
  24. /// </summary>
  25. public const int HTCAPTION = 2;
  26. /// <summary>
  27. /// In a window menu or in a Close button in a child window.
  28. /// </summary>
  29. public const int HTSYSMENU = 3;
  30. /// <summary>
  31. /// In a size box (same as HTGROWBOX).
  32. /// </summary>
  33. public const int HTSIZE = 4;
  34. /// <summary>
  35. /// In a size box (same as HTSIZE).
  36. /// </summary>
  37. public const int HTGROWBOX = HTSIZE;
  38. /// <summary>
  39. /// In a menu.
  40. /// </summary>
  41. public const int HTMENU = 5;
  42. /// <summary>
  43. /// In a horizontal scroll bar.
  44. /// </summary>
  45. public const int HTHSCROLL = 6;
  46. /// <summary>
  47. /// In the vertical scroll bar.
  48. /// </summary>
  49. public const int HTVSCROLL = 7;
  50. /// <summary>
  51. /// In a Minimize button.
  52. /// </summary>
  53. public const int HTMINBUTTON = 8;
  54. /// <summary>
  55. /// In a Maximize button.
  56. /// </summary>
  57. public const int HTMAXBUTTON = 9;
  58. /// <summary>
  59. /// In the left border of a resizable window (the user can click the mouse to resize the window horizontally).
  60. /// </summary>
  61. public const int HTLEFT = 10;
  62. /// <summary>
  63. /// In the right border of a resizable window (the user can click the mouse to resize the window horizontally).
  64. /// </summary>
  65. public const int HTRIGHT = 11;
  66. /// <summary>
  67. /// In the upper-horizontal border of a window.
  68. /// </summary>
  69. public const int HTTOP = 12;
  70. /// <summary>
  71. /// In the upper-left corner of a window border.
  72. /// </summary>
  73. public const int HTTOPLEFT = 13;
  74. /// <summary>
  75. /// In the upper-right corner of a window border.
  76. /// </summary>
  77. public const int HTTOPRIGHT = 14;
  78. /// <summary>
  79. /// In the lower-horizontal border of a resizable window (the user can click the mouse to resize the window vertically).
  80. /// </summary>
  81. public const int HTBOTTOM = 15;
  82. /// <summary>
  83. /// In the lower-left corner of a border of a resizable window (the user can click the mouse to resize the window diagonally).
  84. /// </summary>
  85. public const int HTBOTTOMLEFT = 16;
  86. /// <summary>
  87. /// In the lower-right corner of a border of a resizable window (the user can click the mouse to resize the window diagonally).
  88. /// </summary>
  89. public const int HTBOTTOMRIGHT = 17;
  90. /// <summary>
  91. /// In the border of a window that does not have a sizing border.
  92. /// </summary>
  93. public const int HTBORDER = 18;
  94. /// <summary>
  95. /// In a Minimize button.
  96. /// </summary>
  97. public const int HTREDUCE = HTMINBUTTON;
  98. /// <summary>
  99. /// In a Maximize button.
  100. /// </summary>
  101. public const int HTZOOM = HTMAXBUTTON;
  102. /// <summary>
  103. /// HTSIZEFIRST
  104. /// </summary>
  105. public const int HTSIZEFIRST = HTLEFT;
  106. /// <summary>
  107. /// HTSIZELAST
  108. /// </summary>
  109. public const int HTSIZELAST = HTBOTTOMRIGHT;
  110. /// <summary>
  111. /// HTOBJECT
  112. /// </summary>
  113. public const int HTOBJECT = 19;
  114. /// <summary>
  115. /// In a Close button.
  116. /// </summary>
  117. public const int HTCLOSE = 20;
  118. /// <summary>
  119. /// In a Help button.
  120. /// </summary>
  121. public const int HTHELP = 21;
  122. }
  123. }