BCGSuite for MFC
virtual void CBCGPEditCtrl::FindWordStartFinish ( int  nCaretOffset,
const CString &  strBuffer,
int &  nStartOffset,
int &  nEndOffset,
BOOL  bSkipSpaces = TRUE 
) const
virtual

Given an offset finds the offsets of the beginning and end of a word.

Use this function to find start offset and end offset (all offsets from the beginning of the text) of the current word. The "word" is a set of characters surrounded by delimiters defined by m_strWordDelimiters.

Parameters
nCaretOffsetSpecifies the current caret offset.
nStartOffsetOut parameter. When the function returns will contain the start offset of the word.
nEndOffsetOut parameter. When the function returns will contain the end offset of the word.
bSkipSpacesNot used.
strBufferA reference to the text buffer to be searched for the word.