WindowStyles.cs 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. //#########################################################################################
  2. //★★★★★★★ http://www.cnpopsoft.com [华普软件] ★★★★★★★
  3. //★★★★★★★ 华普软件 - VB & C#.NET 专业论文与源码荟萃! ★★★★★★★
  4. //#########################################################################################
  5. /*
  6. * Copyright ?2005, Mathew Hall
  7. * All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without modification,
  10. * are permitted provided that the following conditions are met:
  11. *
  12. * - Redistributions of source code must retain the above copyright notice,
  13. * this list of conditions and the following disclaimer.
  14. *
  15. * - Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  20. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  21. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  22. * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  23. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  24. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  25. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  26. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  27. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  28. * OF SUCH DAMAGE.
  29. */
  30. using System;
  31. namespace XPTable.Win32
  32. {
  33. /// <summary>
  34. /// Specifies the extended window style of the window being created
  35. /// </summary>
  36. internal enum WindowStyles : uint
  37. {
  38. /// <summary>
  39. /// Creates an overlapped window. An overlapped window has a title bar and a
  40. /// border. Same as the WS_TILED style
  41. /// </summary>
  42. WS_OVERLAPPED = 0x00000000,
  43. /// <summary>
  44. /// Creates a pop-up window. This style cannot be used with the WS_CHILD style
  45. /// </summary>
  46. WS_POPUP = 0x80000000,
  47. /// <summary>
  48. /// Creates a child window. A window with this style cannot have a menu bar.
  49. /// This style cannot be used with the WS_POPUP style
  50. /// </summary>
  51. WS_CHILD = 0x40000000,
  52. /// <summary>
  53. /// Creates a window that is initially minimized. Same as the WS_ICONIC style
  54. /// </summary>
  55. WS_MINIMIZE = 0x20000000,
  56. /// <summary>
  57. /// Creates a window that is initially visible. This style can be turned on and
  58. /// off by using ShowWindow or SetWindowPos
  59. /// </summary>
  60. WS_VISIBLE = 0x10000000,
  61. /// <summary>
  62. /// Creates a window that is initially disabled. A disabled window cannot
  63. /// receive input from the user. To change this after a window has been created,
  64. /// use EnableWindow
  65. /// </summary>
  66. WS_DISABLED = 0x08000000,
  67. /// <summary>
  68. /// Clips child windows relative to each other; that is, when a particular
  69. /// child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips
  70. /// all other overlapping child windows out of the region of the child window
  71. /// to be updated. If WS_CLIPSIBLINGS is not specified and child windows overlap,
  72. /// it is possible, when drawing within the client area of a child window, to
  73. /// draw within the client area of a neighboring child window
  74. /// </summary>
  75. WS_CLIPSIBLINGS = 0x04000000,
  76. /// <summary>
  77. /// Excludes the area occupied by child windows when drawing occurs within
  78. /// the parent window. This style is used when creating the parent window
  79. /// </summary>
  80. WS_CLIPCHILDREN = 0x02000000,
  81. /// <summary>
  82. /// Creates a window that is initially maximized
  83. /// </summary>
  84. WS_MAXIMIZE = 0x01000000,
  85. /// <summary>
  86. /// Creates a window that has a title bar (includes the WS_BORDER style)
  87. /// </summary>
  88. WS_CAPTION = 0x00C00000,
  89. /// <summary>
  90. /// Creates a window that has a thin-line border
  91. /// </summary>
  92. WS_BORDER = 0x00800000,
  93. /// <summary>
  94. /// Creates a window that has a border of a style typically used with dialog
  95. /// boxes. A window with this style cannot have a title bar
  96. /// </summary>
  97. WS_DLGFRAME = 0x00400000,
  98. /// <summary>
  99. /// Creates a window that has a vertical scroll bar
  100. /// </summary>
  101. WS_VSCROLL = 0x00200000,
  102. /// <summary>
  103. /// Creates a window that has a horizontal scroll bar
  104. /// </summary>
  105. WS_HSCROLL = 0x00100000,
  106. /// <summary>
  107. /// Creates a window that has a window menu on its title bar. The WS_CAPTION style
  108. /// must also be specified
  109. /// </summary>
  110. WS_SYSMENU = 0x00080000,
  111. /// <summary>
  112. /// Creates a window that has a sizing border. Same as the WS_SIZEBOX style
  113. /// </summary>
  114. WS_THICKFRAME = 0x00040000,
  115. /// <summary>
  116. /// Specifies the first control of a group of controls. The group consists of this
  117. /// first control and all controls defined after it, up to the next control with
  118. /// the WS_GROUP style. The first control in each group usually has the WS_TABSTOP
  119. /// style so that the user can move from group to group. The user can subsequently
  120. /// change the keyboard focus from one control in the group to the next control in
  121. /// the group by using the direction keys. You can turn this style on and off to
  122. /// change dialog box navigation. To change this style after a window has been
  123. /// created, use SetWindowLong
  124. /// /// </summary>
  125. WS_GROUP = 0x00020000,
  126. /// <summary>
  127. /// Specifies a control that can receive the keyboard focus when the user presses
  128. /// the TAB key. Pressing the TAB key changes the keyboard focus to the next control
  129. /// with the WS_TABSTOP style. You can turn this style on and off to change dialog
  130. /// box navigation. To change this style after a window has been created, use
  131. /// SetWindowLong
  132. /// </summary>
  133. WS_TABSTOP = 0x00010000,
  134. /// <summary>
  135. /// Creates a window that has a minimize button. Cannot be combined with the
  136. /// WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified
  137. /// </summary>
  138. WS_MINIMIZEBOX = 0x00020000,
  139. /// <summary>
  140. /// Creates a window that has a maximize button. Cannot be combined with the
  141. /// WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified
  142. /// </summary>
  143. WS_MAXIMIZEBOX = 0x00010000,
  144. /// <summary>
  145. /// Creates an overlapped window. An overlapped window has a title bar and a
  146. /// border. Same as the WS_OVERLAPPED style
  147. /// </summary>
  148. WS_TILED = 0x00000000,
  149. /// <summary>
  150. /// Creates a window that is initially minimized. Same as the WS_MINIMIZE style
  151. /// </summary>
  152. WS_ICONIC = 0x20000000,
  153. /// <summary>
  154. /// Creates a window that has a sizing border. Same as the WS_THICKFRAME style
  155. /// </summary>
  156. WS_SIZEBOX = 0x00040000,
  157. /// <summary>
  158. /// Creates a pop-up window with WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The
  159. /// WS_CAPTION and WS_POPUPWINDOW styles must be combined to make the window menu
  160. /// visible
  161. /// </summary>
  162. WS_POPUPWINDOW = 0x80880000,
  163. /// <summary>
  164. /// Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU,
  165. /// WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the
  166. /// WS_TILEDWINDOW style
  167. /// </summary>
  168. WS_OVERLAPPEDWINDOW = 0x00CF0000,
  169. /// <summary>
  170. /// Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU,
  171. /// WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the
  172. /// WS_OVERLAPPEDWINDOW style
  173. /// </summary>
  174. WS_TILEDWINDOW = 0x00CF0000,
  175. /// <summary>
  176. /// Same as the WS_CHILD style
  177. /// </summary>
  178. WS_CHILDWINDOW = 0x40000000
  179. }
  180. }