Параметры для SendMessage чтобы выделить элемент номер ... в ListBox'е - VB
Формулировка задачи:
Подскажите параметры для SendMessage чтобы выделить элемент номер ... в ListBox'е. Нахожу его тем же SendMessage, но такого не встречал... Где вообще можно прочитать о константах для сообщений?
Решение задачи: «Параметры для SendMessage чтобы выделить элемент номер ... в ListBox'е»
textual
Листинг программы
- 'General Messages
- Const LB_ERR = -1
- Const LB_SETTOPINDEX = &H197 'insure that a particular item is visible
- Const LB_GETCOUNT = &H18B 'retrieve the number of items in a list box
- Const LB_GETSEL = &H187 'retrieve the selection state of an item
- Const LB_ADDSTRING = &H180 'add a string and re-sort a sorted listbox
- Const LB_INSERTSTRING = &H181 'add a string but do not re-sort a sorted listbox
- Const LB_DELETESTRING = &H182 'delete a single string
- Const LB_FINDSTRING = &H18F 'find the first string containing the string specified
- Const LB_FINDSTRINGEXACT = &H1A2 'find the first string that matches the string specified
- Const LB_SETTABSTOPS = &H192 'set the tab-stop positions
- Const LB_RESETCONTENT = &H184 'remove all items
- 'Multi-Select Listboxes
- Const LB_SETSEL = &H185 'select a string
- Const LB_GETSELCOUNT = &H190 'retrieve the total number of selected items
- 'Single Selection Listboxes
- Const LB_SELECTSTRING = &H18C 'find the first string containing the string specified
- Const LB_GETCURSEL = &H188 'retrieve the index of the currently selected item
- Const LB_SETCURSEL = &H186 'select a string and scroll it into view
ИИ поможет Вам:
- решить любую задачу по программированию
- объяснить код
- расставить комментарии в коде
- и т.д