TE Edit Control Win32 / Win64 Help
Product page

TerGetSelection

Get the beginning and ending positions of a selected text block.

BOOL TerGetSelection(hWnd, FirstLine, FirstCol, EndLine, EndCol)
HWND hWnd;The handle of the window to be accessed
LPLONG FirstLine;Beginning line number of the block
LPINT FirstCol;Beginning column number of the block
LPLONG EndLine;Last line number of the block
LPINT EndCol;The first non-selected column position. The ending column position is not included in the selected block.

Return Value: This function returns TRUE if a text block is selected, otherwise it returns FALSE.