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.
CWnd::SetCaretPos
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  static void SetCaretPos( POINT point );
 
  Parameter   Description
 
  <point>     Specifies the new logical x- and y-coordinate of the caret.
 
  Remarks
 
  Moves the caret to the position given by logical coordinates specified
  by <point>. Logical coordinates are relative to the client area and are
  affected by the mapping mode, so the exact position in pixels depends on
  this mapping mode.
 
  The SetCaretPos member function moves the caret only if it is owned by a
  window in the current task. SetCaretPos moves the caret whether or not
  the caret is hidden.
 
  The caret is a shared resource. A CWnd should not move the caret if it
  does not own the caret.
 
  See Also
 
  CWnd::GetCaretPos, ::SetCaretPos
 
 
                                     -♦-