BCGControlBar Pro for MFC
BOOL CBCGPEditCtrl::GetWordFromOffset ( int  nOffset,
CString &  strWord 
) const

Given an offset from the beginning of the text returns a word at this offset.

Returns
Nonzero if a word was found; otherwise 0.

Given an offset from the beginning of the text returns a word at this offset. The "word" is a set of characters surrounded by delimiters defined in m_strWordDelimiters.

Parameters
nOffsetSpecifies the offset.
strWordOut parameter. If the function succeeds will contained a word when the function returns.