BCGControlBar Pro for MFC
CBCGPPoint CBCGPChartDiagram3D::TranslateDistance ( const CBCGPPoint pt)

Converts X and Y values in screen coordinates to normalized coordinates.

For example, we need to find out how much an offset of 6 pixels is in normalized coordinates:

Copy
CBCGPPoint ptOffset(6, 0);
CBCGPPoint ptConverted = pChart->GetDiagram3D()->TranslateDistance(ptOffset);

now ptConverted.x contains the required offset.

Parameters
ptA point (offset) in screen coordinates.