ComboConstants.au3 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #include-once
  2. ; #INDEX# =======================================================================================================================
  3. ; Title .........: ComboBox_Constants
  4. ; AutoIt Version : 3.3.14.5
  5. ; Language ......: English
  6. ; Description ...: Constants for <a href="../appendix/GUIStyles.htm#Combo">GUI control Combo styles</a> and more.
  7. ; Author(s) .....: Valik, Gary Frost
  8. ; ===============================================================================================================================
  9. ; #CONSTANTS# ===================================================================================================================
  10. ; Error checking
  11. Global Const $CB_ERR = -1
  12. Global Const $CB_ERRATTRIBUTE = -3
  13. Global Const $CB_ERRREQUIRED = -4
  14. Global Const $CB_ERRSPACE = -2
  15. Global Const $CB_OKAY = 0
  16. ; States
  17. Global Const $STATE_SYSTEM_INVISIBLE = 0x8000
  18. Global Const $STATE_SYSTEM_PRESSED = 0x8
  19. ; ComboBox Styles
  20. Global Const $CBS_AUTOHSCROLL = 0x40 ; Automatically scrolls the text in an edit control to the right when the user types a character at the end of the line.
  21. Global Const $CBS_DISABLENOSCROLL = 0x800 ; Shows a disabled vertical scroll bar
  22. Global Const $CBS_DROPDOWN = 0x2 ; Similar to $CBS_SIMPLE, except that the list box is not displayed unless the user selects an icon next to the edit control
  23. Global Const $CBS_DROPDOWNLIST = 0x3 ; Similar to $CBS_DROPDOWN, except that the edit control is replaced by a static text item that displays the current selection in the list box
  24. Global Const $CBS_HASSTRINGS = 0x200 ; Specifies that an owner-drawn combo box contains items consisting of strings
  25. Global Const $CBS_LOWERCASE = 0x4000 ; Converts to lowercase all text in both the selection field and the list
  26. Global Const $CBS_NOINTEGRALHEIGHT = 0x400 ; Specifies that the size of the combo box is exactly the size specified by the application when it created the combo box
  27. Global Const $CBS_OEMCONVERT = 0x80 ; Converts text entered in the combo box edit control from the Windows character set to the OEM character set and then back to the Windows character set
  28. Global Const $CBS_OWNERDRAWFIXED = 0x10 ; Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are all the same height
  29. Global Const $CBS_OWNERDRAWVARIABLE = 0x20 ; Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height
  30. Global Const $CBS_SIMPLE = 0x1 ; Displays the list box at all times
  31. Global Const $CBS_SORT = 0x100 ; Automatically sorts strings added to the list box
  32. Global Const $CBS_UPPERCASE = 0x2000 ; Converts to uppercase all text in both the selection field and the list
  33. ; ComboBox Messages
  34. Global Const $CBM_FIRST = 0x1700
  35. Global Const $CB_ADDSTRING = 0x143
  36. Global Const $CB_DELETESTRING = 0x144
  37. Global Const $CB_DIR = 0x145
  38. Global Const $CB_FINDSTRING = 0x14C
  39. Global Const $CB_FINDSTRINGEXACT = 0x158
  40. Global Const $CB_GETCOMBOBOXINFO = 0x164
  41. Global Const $CB_GETCOUNT = 0x146
  42. Global Const $CB_GETCUEBANNER = ($CBM_FIRST + 4)
  43. Global Const $CB_GETCURSEL = 0x147
  44. Global Const $CB_GETDROPPEDCONTROLRECT = 0x152
  45. Global Const $CB_GETDROPPEDSTATE = 0x157
  46. Global Const $CB_GETDROPPEDWIDTH = 0X15f
  47. Global Const $CB_GETEDITSEL = 0x140
  48. Global Const $CB_GETEXTENDEDUI = 0x156
  49. Global Const $CB_GETHORIZONTALEXTENT = 0x15d
  50. Global Const $CB_GETITEMDATA = 0x150
  51. Global Const $CB_GETITEMHEIGHT = 0x154
  52. Global Const $CB_GETLBTEXT = 0x148
  53. Global Const $CB_GETLBTEXTLEN = 0x149
  54. Global Const $CB_GETLOCALE = 0x15A
  55. Global Const $CB_GETMINVISIBLE = 0x1702
  56. Global Const $CB_GETTOPINDEX = 0x15b
  57. Global Const $CB_INITSTORAGE = 0x161
  58. Global Const $CB_LIMITTEXT = 0x141
  59. Global Const $CB_RESETCONTENT = 0x14B
  60. Global Const $CB_INSERTSTRING = 0x14A
  61. Global Const $CB_SELECTSTRING = 0x14D
  62. Global Const $CB_SETCUEBANNER = ($CBM_FIRST + 3)
  63. Global Const $CB_SETCURSEL = 0x14E
  64. Global Const $CB_SETDROPPEDWIDTH = 0x160
  65. Global Const $CB_SETEDITSEL = 0x142
  66. Global Const $CB_SETEXTENDEDUI = 0x155
  67. Global Const $CB_SETHORIZONTALEXTENT = 0x15e
  68. Global Const $CB_SETITEMDATA = 0x151
  69. Global Const $CB_SETITEMHEIGHT = 0x153
  70. Global Const $CB_SETLOCALE = 0x159
  71. Global Const $CB_SETMINVISIBLE = 0x1701
  72. Global Const $CB_SETTOPINDEX = 0x15c
  73. Global Const $CB_SHOWDROPDOWN = 0x14F
  74. ; ComboBox Notifications
  75. Global Const $CBN_CLOSEUP = 8
  76. Global Const $CBN_DBLCLK = 2
  77. Global Const $CBN_DROPDOWN = 7
  78. Global Const $CBN_EDITCHANGE = 5
  79. Global Const $CBN_EDITUPDATE = 6
  80. Global Const $CBN_ERRSPACE = (-1)
  81. Global Const $CBN_KILLFOCUS = 4
  82. Global Const $CBN_SELCHANGE = 1
  83. Global Const $CBN_SELENDCANCEL = 10
  84. Global Const $CBN_SELENDOK = 9
  85. Global Const $CBN_SETFOCUS = 3
  86. ; ComboBoxEx Styles
  87. ; ComboBox styles supported: $CBS_DROPDOWN, $CBS_DROPDOWNLIST, $CBS_SIMPLE
  88. Global Const $CBES_EX_CASESENSITIVE = 0x10 ; Searches in the list will be case sensitive
  89. Global Const $CBES_EX_NOEDITIMAGE = 0x1 ; The edit box and the dropdown list will not display item images
  90. Global Const $CBES_EX_NOEDITIMAGEINDENT = 0x2 ; The edit box and the dropdown list will not display item images
  91. Global Const $CBES_EX_NOSIZELIMIT = 0x8 ; Allows the ComboBoxEx control to be vertically sized smaller than its contained combo box control
  92. ; ComboBoxEx Messages
  93. Global Const $__COMBOBOXCONSTANT_WM_USER = 0X400
  94. Global Const $CBEM_DELETEITEM = $CB_DELETESTRING
  95. Global Const $CBEM_GETCOMBOCONTROL = ($__COMBOBOXCONSTANT_WM_USER + 6)
  96. Global Const $CBEM_GETEDITCONTROL = ($__COMBOBOXCONSTANT_WM_USER + 7)
  97. Global Const $CBEM_GETEXSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 9)
  98. Global Const $CBEM_GETEXTENDEDSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 9)
  99. Global Const $CBEM_GETIMAGELIST = ($__COMBOBOXCONSTANT_WM_USER + 3)
  100. Global Const $CBEM_GETITEMA = ($__COMBOBOXCONSTANT_WM_USER + 4)
  101. Global Const $CBEM_GETITEMW = ($__COMBOBOXCONSTANT_WM_USER + 13)
  102. Global Const $CBEM_GETUNICODEFORMAT = 0x2000 + 6
  103. Global Const $CBEM_HASEDITCHANGED = ($__COMBOBOXCONSTANT_WM_USER + 10)
  104. Global Const $CBEM_INSERTITEMA = ($__COMBOBOXCONSTANT_WM_USER + 1)
  105. Global Const $CBEM_INSERTITEMW = ($__COMBOBOXCONSTANT_WM_USER + 11)
  106. Global Const $CBEM_SETEXSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 8)
  107. Global Const $CBEM_SETEXTENDEDSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 14)
  108. Global Const $CBEM_SETIMAGELIST = ($__COMBOBOXCONSTANT_WM_USER + 2)
  109. Global Const $CBEM_SETITEMA = ($__COMBOBOXCONSTANT_WM_USER + 5)
  110. Global Const $CBEM_SETITEMW = ($__COMBOBOXCONSTANT_WM_USER + 12)
  111. Global Const $CBEM_SETUNICODEFORMAT = 0x2000 + 5
  112. Global Const $CBEM_SETWINDOWTHEME = 0x2000 + 11
  113. ; ComboBoxEx Notifications
  114. Global Const $CBEN_FIRST = (-800)
  115. Global Const $CBEN_LAST = (-830)
  116. Global Const $CBEN_BEGINEDIT = ($CBEN_FIRST - 4)
  117. Global Const $CBEN_DELETEITEM = ($CBEN_FIRST - 2)
  118. Global Const $CBEN_DRAGBEGINA = ($CBEN_FIRST - 8)
  119. Global Const $CBEN_DRAGBEGINW = ($CBEN_FIRST - 9)
  120. Global Const $CBEN_ENDEDITA = ($CBEN_FIRST - 5)
  121. Global Const $CBEN_ENDEDITW = ($CBEN_FIRST - 6)
  122. Global Const $CBEN_GETDISPINFO = ($CBEN_FIRST - 0)
  123. Global Const $CBEN_GETDISPINFOA = ($CBEN_FIRST - 0)
  124. Global Const $CBEN_GETDISPINFOW = ($CBEN_FIRST - 7)
  125. Global Const $CBEN_INSERTITEM = ($CBEN_FIRST - 1)
  126. ; attributes for Extended ComboBox
  127. Global Const $CBEIF_DI_SETITEM = 0x10000000
  128. Global Const $CBEIF_IMAGE = 0x2
  129. Global Const $CBEIF_INDENT = 0x10
  130. Global Const $CBEIF_LPARAM = 0x20
  131. Global Const $CBEIF_OVERLAY = 0x8
  132. Global Const $CBEIF_SELECTEDIMAGE = 0x4
  133. Global Const $CBEIF_TEXT = 0x1
  134. ; Control default styles
  135. Global Const $GUI_SS_DEFAULT_COMBO = 0x00200042 ; BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL)
  136. ; ===============================================================================================================================