BCGSuite for MFC
void CBCGPEditCtrl::ClientToVirt ( CRect &  rect)

Converts a point in client coordinates to document coordinates.

Call this function to convert a rectangle 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
rectContains the client coordinates to convert and the result when the function returns.