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: IchFromXpos (hwnd, ln, xp).
Inputs:
Parameter |
Description |
hwnd |
The window. |
ln |
The line number that contains the text to be measured. If ln is out of range, then –1 is returned. |
ich |
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. |
You can use the IchFromXpos function to perform the reverse mapping.