Returns the line number located at the given y-pixel position in the given window. The y-position is relative to the top edge of the window. If the line number is not visible in the window, then -1 is returned. See: YposFromLine (hwnd, ln).
Inputs:
Parameter |
Description |
hwnd |
The window. |
ypos |
The y-pixel position relative to the top of the window. Ypos values are zero at the top of the window, and a positive value at the bottom of the window. If ypos is not inside the window, then -1 is returned. |
You can use the YposFromLine function to perform the reverse mapping.