Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2003.08.07;
Скачать: [xml.tar.bz2];

Вниз

EM_CHARFROMPOS и EM_LINEFROMCHAR   Найти похожие ветки 

 
Maximov   (2003-05-17 10:04) [0]

EM_CHARFROMPOS и EM_LINEFROMCHAR - Что за звери и как их использовать?

На форуме (в общих вопросах) посоветовали для моих целей
использовать EM_CHARFROMPOS и EM_LINEFROMCHAR,
но как с ними обращаться не могу сообразить.
Пожалуйста, киньте ссылочку на толковое описание,
или если не трудно здесь черкните что к чему...


 
Malder   (2003-05-17 12:38) [1]

An application sends an EM_CHARFROMPOS message to retrieve the zero-based character index and zero-based line index of the character nearest the specified point in an edit control.

EM_CHARFROMPOS
wParam = 0;
lParam = MAKELPARAM(x, y)


Parameters

x

Value of the low-order word of lParam. Specifies the x-coordinate of a point in the edit control"s client area. The coordinate is relative to the upper-left corner of the client area.

y

Value of the high-order word of lParam. Specifies the y-coordinate of a point in the edit control"s client area. The coordinate is relative to the upper-left corner of the client area.



Return Values

The return value specifies the character index in the low-order word and the line index in the high-order word. For single-line edit controls, the line index is always 0. The return value is the last character in the edit control if the given point is beyond the last character in the control. The return value is -1 if the specified point is outside the client area of the edit control.

See Also

EM_POSFROMCHAR


 
Malder   (2003-05-17 12:38) [2]

An application sends an EM_LINEFROMCHAR message to retrieve the index of the line that contains the specified character index in a multiline edit control. A character index is the number of characters from the beginning of the edit control.

EM_LINEFROMCHAR
wParam = (WPARAM) ich; // character index
lParam = 0; // not used; must be zero


Parameters

ich

Value of wParam. Specifies the character index of the character contained in the line whose number is to be retrieved. If the ich parameter is -1, either the line number of the current line (the line containing the caret) is retrieved or, if there is a selection, the line number of the line containing the beginning of the selection is retrieved.



Return Values

The return value is the zero-based line number of the line containing the character index specified by ich.

Remarks

In a rich edit control, if the character index is greater than 64K, use the message EM_EXLINEFROMCHAR.

See Also

EM_EXLINEFROMCHAR, EM_LINEINDEX


 
Malder   (2003-05-17 12:40) [3]

MSDN & Win32sdk


 
Maximov   (2003-05-17 14:38) [4]

А по русски? 8)
Я очень благодарен за ответ! Но...
Это больше похоже на выписку из борландовского хелпа.


 
Malder   (2003-05-17 14:51) [5]

Это и есть оно. Проблемы с английским ? Берем словарик или пользуемся эллектронными вариантами


 
SerB   (2003-06-05 04:51) [6]

To malder? Не забудь свой родной язык, уж сильно много словарей перелопатить прийдется, тебя же как человека спросили, а ты выебываешься



Страницы: 1 вся ветка

Форум: "WinAPI";
Текущий архив: 2003.08.07;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.008 c
1-20542
lipskiy
2003-07-21 23:46
2003.08.07
TImage, TTolbar и 32-битные иконки


1-20578
Verg
2003-07-23 13:21
2003.08.07
Целочисленное деление с округлением


4-20838
sosv
2003-06-03 17:32
2003.08.07
Как отслеживать изменения файлов на диске ?


14-20697
Ivolg
2003-07-23 12:16
2003.08.07
Animate!


1-20623
VD602
2003-07-24 22:50
2003.08.07
FileStream.WriteBiffer(SomeString, Length(SomeString));





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский