BCGControlBar Pro for MFC
virtual void CBCGPEditCtrl::SetSel2 ( int  nStartSel,
int  nEndSel,
BOOL  bNoScroll = FALSE,
BOOL  bRedraw = TRUE 
)
virtual

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.
bRedrawIf TRUE the edit control will be redrawn.