BCGSuite for MFC
void CBCGPEditCtrl::ClientToVirt ( CPoint &  pt)

Converts a point in client coordinates to document coordinates.

Call this function to convert a point in the edit control client coordinates to document coordinates. The function takes the client coordinates and adds the current vertical scroll offset multiplied by the line height and the current horizontal scroll offset multiplied by the maximal character width.

Parameters
ptContains the client coordinates to convert and the result when the function returns.