XposFromIch (hwnd, ln, ich)

Returns the pixel x-position number given character position (ich) on the line number (ln) in the given window. The x-position is relative to the left edge of the whole window. The line does not actually have to be displayed in the window at the time this function is called. See also “IchFromXpos (hwnd, ln, xp)”.





The window.


The line number that contains the text to be measured. If ln is out of range, then –1 is returned.


The character index, which is the zero based index of a character on the specified line. If ich exceeds the number of characters on the line, then the x position of the end of the line is returned.

Note: You can use the IchFromXpos function to perform the reverse mapping.