TerSetCaretPos
Set the current caret position.
BOOL TerSetCaretPos(hWnd, CaretPos)
HWND hWnd; | The handle of the window to be accessed. |
Long CaretPos; | New caret position. The value is specified as the character position from the beginning of the document |
Description: When the caret is engaged, this function simply calls the SetTerCursorPos function to set the cursor position. When the caret is disengaged from the cursor, this value updates an internal variable. When the caret is eventually engaged, the cursor is positioned at the new caret position.
Return Value: This function returns TRUE when successful.