EdSetSelΒΆ

EdSetSel selects a range of characters in the editor.

bool = EdSetSel(hEdit, nStartChar, nEndChar)

Return Value

If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).

Parameters

hEdit

Identifies the editor.

nStartChar

nStartChar specifies the starting position. If nStartChar is 0 and nEndChar is -1, all the text in the editor will be selected. If nStartChar is -1, the current selection will be removed.

nEndChar

nEndChar specifies the end position. If nEndChar is -1, the text from nStartChar to the end of the editor will be selected.

id-1814569