BCGSoft Professional Editor for MFC
BOOL CBCGPEditCtrl::OffsetToPoint ( int  nOffset,
CPoint &  pt,
LPPOINT  ptRowColumn = NULL,
LPINT  pnScrollOffset = NULL 
)

Given an offset from the beginning of text buffer returns a point in the client coordinates.

The returned point may have coordinates outside of the client area if the symbol at the specified offset is not on the current page.

Parameters
nOffsetThe offset from the beginning of the text buffer.
ptOut parameter. When the function returns it will contain the client coordinates of the symbol.
ptRowColumnOut parameter. When the function returns will contain the column and row of the symbol. Can be NULL.
pnScrollOffsetOut parameter. When the function returns will contain horizontal and vertical scroll offsets of the symbol. Can be null.