SECEditController::SetSel

Selects a range of characters.

Defined in: SECEditControllerCEditEmul.cpp

Syntax

void SECEditController::SetSel(DWORD dwSelection, BOOL bNoScroll = FALSE)

void SECEditController::SetSel(int nStartChar, int nEndChar, BOOL bNoScroll = FALSE)

Parameters

dwSelection

Specifies the starting position in the low-order word and the ending position in the high-order word. If the low-order word is 0 and the high-order word is -1, all the text is selected. If the low-order word is -1, any current selection is removed.

nStartChar

Specifies the starting position. If nStartChar is 0 and nEndChar is -1, all the text is selected. If nStartChar is -1, any current selection is removed.

nEndChar

Specifies the ending position.

bNoScroll

Indicates whether the caret should be scrolled into view. If FALSE, the caret is scrolled into view. If TRUE, the caret is not scrolled into view.

Developer Notes

This method is provided as a part of the Objective Edit CEdit compatiblity layer.

See Also

SECEditController