![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как программно выделить полностью одну N строку в TMemo?
JIMMI © (2003-01-07 15:33:00)
Song (2003-01-07 18:51:00) [1]В интернете.
JIMMI (2003-01-07 18:49:00) [2]Спасибо, а где можно найти описание всех этих messag (на русском)?
Song (2003-01-07 18:04:00) [3]An application sends an EM_LINEINDEX message to retrieve the character index of a line in a multiline edit control. The character index is the number of characters from the beginning of the edit control to the specified line.
EM_LINEINDEX
wParam = (WPARAM) line; // line number
lParam = 0; // not used; must be zero
Parameters
line
Value of wParam. Specifies the zero-based line number. A value of -1 specifies the current line number (the line that contains the caret).
Return Values
The return value is the character index of the line specified in the line parameter, or it is -1 if the specified line number is greater than the number of lines in the edit control.
JIMMI (2003-01-07 18:02:00) [4]Спасибо, но как этим пользоваться?
Song (2003-01-07 16:58:00) [5]EM_LINEINDEX
JIMMI (2003-01-07 16:45:00) [6]Это понятно, но допустим, что я не знаю какой номер по порядку символа в начале строки! Мне дан только номер строки, которую нужно всю выделить!
Заранее благодарен!
Song (2003-01-07 16:40:00) [7]TMemo.SelStart/SelLength