TE Edit Control Win32 / Win64 Help
Product page

TerGetVisibleCol

Get the visible column number from a text column number.

long TerGetVisibleCol(hWnd, LineNo, ColNo)
HWND hWnd;The handle of the window to be accessed
long LineNo;The text line number (zero based). Set this parameter to -1 to specify the current line number.
int ColNoThe text column number. Set to -1 to specify the current column number.

Description: This function calculates the visible column number (zero based) by ignoring the character not visible on the screen. These characters might include the hidden text when the hidden text is not displayed, field name when field name is not displayed, field data when the field data is not displayed, etc.

Return Value: This function returns the visible column number. It returns -1 to indicate an error condition.