Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CEdit::SetSel
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
 
 
                                     -♦-