BCGSuite for MFC
virtual void CBCGPEditCtrl::SetSel ( int  nStartSel,
int  nEndSel,
BOOL  bNoScroll = FALSE 
)
inlinevirtual

Sets the current selection.

Call this function to select the text in the specifies range. If nEndSel is -1, the text is selected up to the end. If nStartSel is -1, the selection is removed.

Parameters
nStartSelSpecifies the zero-based offset of the first selected character in the edit control.
nEndSelSpecifies the zero-based offset of the last selected character in the edit control.
bNoScrollIf TRUE, the edit control should not be scrolled to the first selected character.