| BOOL CBCGPEditCtrl::SetCaret | ( | int | nOffset, | 
| BOOL | bScrollToCaret = TRUE, | ||
| BOOL | bRedrawOnScroll = TRUE, | ||
| BOOL | bCleanUpSelection = FALSE | ||
| ) | 
Sets the caret at the specified offset.
Call this function to set the caret at the desired offset. This offset becomes the current offset and m_nCurrOffset member is updated.
| nOffset | Specifies the zero-based offset from the beginning of the text. | 
| bScrollToCaret | If TRUE, the edit control should be scrolled to the new caret position. | 
| bRedrawOnScroll | Specifies whether the edit control should be redrawn if scrolling has occured as a result of this operation. | 
| bCleanUpSelection | Specifies whether the edit control's selection (if any) should be cleanned-up after caret position changing. |