BCGSoft Professional Editor for MFC
BOOL CBCGPEditCtrl::GetWordFromPoint ( CPoint  pt,
CString &  strWord 
)

Given a point in client coordinates returns a word at this point.

Returns
Nonzero if a word was found; otherwise 0.

The "word" is a set of characters surrounded by delimiters defined in m_strWordDelimiters.

Parameters
ptSpecifies the point to be tested.
strWord[out] Contains the word when the function returns.