TE Edit Control Win32 / Win64 Help
Product page

TerAbsToRowCol

Convert the given character position to the row and column position

void TerAbsToRowCol(hWnd, abs, row, col)
HWND hWnd;Handle of the window to be accessed
long abs;character position (0 based) from the beginning of the file.
long far *row;location to return the line number (0 based)
int far * col;location to return the column number (0 based)

Description: This function converts the text position given in a number of characters from the beginning of the file to the row and column position.

Return Value: The line and column numbers are returned using the pointer specified by the third and fourth arguments.