◄CEdit► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── void SetSel( DWORD dwSelection ); void SetSel( int nStartChar, int nEndChar ); Parameter Description <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 in the edit control 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 in the edit control is selected. If <nStartChar> is -1, any current selection is removed. <nEndChar> Specifies the ending position. Remarks Selects a range of characters in an edit control. The edit control does not display the selection set by this member function as it does when the user makes a selection. See Also ◄CEdit::GetSel►, ◄CEdit::ReplaceSel►, ◄EM_SETSEL► -♦-