Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
5.9 KiB

  1. /* Window styles */
  2. #define WS_TILED 0x00000000L
  3. #define WS_ICONICPOPUP 0xc0000000L
  4. #define WS_POPUP 0x80000000L
  5. #define WS_CHILD 0x40000000L
  6. #define WS_MINIMIZE 0x20000000L
  7. #define WS_VISIBLE 0x10000000L
  8. #define WS_DISABLED 0x08000000L
  9. #define WS_CLIPSIBLINGS 0x04000000L
  10. #define WS_CLIPCHILDREN 0x02000000L
  11. #define WS_MAXIMIZE 0x01000000L
  12. #define WS_BORDER 0x00800000L
  13. #define WS_CAPTION 0x00c00000L
  14. #define WS_DLGFRAME 0x00400000L
  15. #define WS_VSCROLL 0x00200000L
  16. #define WS_HSCROLL 0x00100000L
  17. #define WS_SYSMENU 0x00080000L
  18. #define WS_SIZEBOX 0x00040000L
  19. #define WS_GROUP 0x00020000L
  20. #define WS_TABSTOP 0x00010000L
  21. #define WS_ICONIC WS_MINIMIZE
  22. /* Class styles */
  23. #define CS_VREDRAW 0x0001
  24. #define CS_HREDRAW 0x0002
  25. #define CS_KEYCVTWINDOW 0x0004
  26. #define CS_DBLCLKS 0x0008
  27. /* 0x0010 reserved */
  28. #define CS_OWNDC 0x0020
  29. #define CS_CLASSDC 0x0040
  30. #define CS_MENUPOPUP 0x0080
  31. #define CS_NOKEYCVT 0x0100
  32. #define CS_SAVEBITS 0x0800
  33. /* Shorthand for the common cases */
  34. #define WS_TILEDWINDOW (WS_TILED | WS_CAPTION | WS_SYSMENU | WS_SIZEBOX)
  35. #define WS_POPUPWINDOW (WS_POPUP | WS_BORDER | WS_SYSMENU)
  36. #define WS_CHILDWINDOW (WS_CHILD)
  37. /* Edit control styles */
  38. #define ES_LEFT 0x0000L
  39. #define ES_CENTER 0x0001L
  40. #define ES_RIGHT 0x0002L
  41. #define ES_MULTILINE 0x0004L
  42. #define ES_UPPERCASE 0x0008L
  43. #define ES_LOWERCASE 0x0010L
  44. #define ES_PASSWORD 0x0020L
  45. #define ES_AUTOVSCROLL 0x0040L
  46. #define ES_AUTOHSCROLL 0x0080L
  47. #define ES_NOHIDESEL 0x0100L
  48. #define ES_OEMCONVERT 0x0400L
  49. /* button control styles */
  50. #define BS_PUSHBUTTON 0L
  51. #define BS_DEFPUSHBUTTON 1L
  52. #define BS_CHECKBOX 2L
  53. #define BS_AUTOCHECKBOX 3L
  54. #define BS_RADIOBUTTON 4L
  55. #define BS_3STATE 5L
  56. #define BS_AUTO3STATE 6L
  57. #define BS_GROUPBOX 7L
  58. #define BS_USERBUTTON 8L
  59. #define BS_AUTORADIOBUTTON 9L
  60. #define BS_PUSHBOX 10L
  61. #define BS_OWNERDRAW 0x0BL
  62. #define BS_LEFTTEXT 0x20L
  63. /* Dialog Styles */
  64. #define DS_ABSALIGN 0x01L
  65. #define DS_SYSMODAL 0x02L
  66. #define DS_LOCALEDIT 0x20L /* Edit items get Local storage. */
  67. #define DS_SETFONT 0x40L /* User specified font for Dlg controls */
  68. #define DS_MODALFRAME 0x80L /* Can be combined with WS_CAPTION */
  69. #define DS_NOIDLEMSG 0x100L /* WM_ENTERIDLE message will not be sent */
  70. /* listbox style bits */
  71. #define LBS_NOTIFY 0x0001L
  72. #define LBS_SORT 0x0002L
  73. #define LBS_NOREDRAW 0x0004L
  74. #define LBS_MULTIPLESEL 0x0008L
  75. #define LBS_OWNERDRAWFIXED 0x0010L
  76. #define LBS_OWNERDRAWVARIABLE 0x0020L
  77. #define LBS_HASSTRINGS 0x0040L
  78. #define LBS_USETABSTOPS 0x0080L
  79. #define LBS_NOINTEGRALHEIGHT 0x0100L
  80. #define LBS_MULTICOLUMN 0x0200L
  81. #define LBS_WANTKEYBOARDINPUT 0x0400L
  82. #define LBS_EXTENDEDSEL 0x0800L
  83. #define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
  84. /* Combo Box styles */
  85. #define CBS_SIMPLE 0x0001L
  86. #define CBS_DROPDOWN 0x0002L
  87. #define CBS_DROPDOWNLIST 0x0003L
  88. #define CBS_OWNERDRAWFIXED 0x0010L
  89. #define CBS_OWNERDRAWVARIABLE 0x0020L
  90. #define CBS_AUTOHSCROLL 0x0040L
  91. #define CBS_SORT 0x0100L
  92. #define CBS_HASSTRINGS 0x0200L
  93. /* scroll bar styles */
  94. #define SBS_HORZ 0x0000L
  95. #define SBS_VERT 0x0001L
  96. #define SBS_TOPALIGN 0x0002L
  97. #define SBS_LEFTALIGN 0x0002L
  98. #define SBS_BOTTOMALIGN 0x0004L
  99. #define SBS_RIGHTALIGN 0x0004L
  100. #define SBS_SIZEBOXTOPLEFTALIGN 0x0002L
  101. #define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L
  102. #define SBS_SIZEBOX 0x0008L
  103. /* Conventional dialog box and message box command IDs */
  104. #define IDOK 1
  105. #define IDCANCEL 2
  106. #define IDABORT 3
  107. #define IDRETRY 4
  108. #define IDIGNORE 5
  109. #define IDYES 6
  110. #define IDNO 7
  111. /* Static control constants */
  112. #define SS_LEFT 0L
  113. #define SS_CENTER 1L
  114. #define SS_RIGHT 2L
  115. #define SS_ICON 3L
  116. #define SS_BLACKRECT 4L
  117. #define SS_GRAYRECT 5L
  118. #define SS_WHITERECT 6L
  119. #define SS_BLACKFRAME 7L
  120. #define SS_GRAYFRAME 8L
  121. #define SS_WHITEFRAME 9L
  122. #define SS_USERITEM 10L
  123. /* Virtual Keys, Standard Set */
  124. #define VK_LBUTTON 0x01
  125. #define VK_RBUTTON 0x02
  126. #define VK_CANCEL 0x03
  127. #define VK_MBUTTON 0x04 /* NOT contiguous with L & RBUTTON */
  128. #define VK_BACK 0x08
  129. #define VK_TAB 0x09
  130. #define VK_CLEAR 0x0c
  131. #define VK_RETURN 0x0d
  132. #define VK_SHIFT 0x10
  133. #define VK_CONTROL 0x11
  134. #define VK_MENU 0x12
  135. #define VK_PAUSE 0x13
  136. #define VK_CAPITAL 0x14
  137. #define VK_ESCAPE 0x1b
  138. #define VK_SPACE 0x20
  139. #define VK_PRIOR 0x21
  140. #define VK_NEXT 0x22
  141. #define VK_END 0x23
  142. #define VK_HOME 0x24
  143. #define VK_LEFT 0x25
  144. #define VK_UP 0x26
  145. #define VK_RIGHT 0x27
  146. #define VK_DOWN 0x28
  147. /* VK_A thru VK_Z are the same as their ASCII equivalents: 'A' thru 'Z' */
  148. /* VK_0 thru VK_9 are the same as their ASCII equivalents: '0' thru '0' */
  149. #define VK_SELECT 0x29
  150. #define VK_PRINT 0x2a
  151. #define VK_EXECUTE 0x2b
  152. #define VK_SNAPSHOT 0x2c
  153. #define VK_INSERT 0x2d
  154. #define VK_DELETE 0x2e
  155. #define VK_HELP 0x2f
  156. #define VK_NUMPAD0 0x60
  157. #define VK_NUMPAD1 0x61
  158. #define VK_NUMPAD2 0x62
  159. #define VK_NUMPAD3 0x63
  160. #define VK_NUMPAD4 0x64
  161. #define VK_NUMPAD5 0x65
  162. #define VK_NUMPAD6 0x66
  163. #define VK_NUMPAD7 0x67
  164. #define VK_NUMPAD8 0x68
  165. #define VK_NUMPAD9 0x69
  166. #define VK_MULTIPLY 0x6A
  167. #define VK_ADD 0x6B
  168. #define VK_SEPARATOR 0x6C
  169. #define VK_SUBTRACT 0x6D
  170. #define VK_DECIMAL 0x6E
  171. #define VK_DIVIDE 0x6F
  172. #define VK_F1 0x70
  173. #define VK_F2 0x71
  174. #define VK_F3 0x72
  175. #define VK_F4 0x73
  176. #define VK_F5 0x74
  177. #define VK_F6 0x75
  178. #define VK_F7 0x76
  179. #define VK_F8 0x77
  180. #define VK_F9 0x78
  181. #define VK_F10 0x79
  182. #define VK_F11 0x7a
  183. #define VK_F12 0x7b
  184. #define VK_F13 0x7c
  185. #define VK_F14 0x7d
  186. #define VK_F15 0x7e
  187. #define VK_F16 0x7f