CBCGPChartData CBCGPChartVisualObject::ChartDataFromScreenPoint | ( | const CBCGPPoint & | pt, |
CBCGPChartAxis::RoundType | roundType, | ||
BOOL | bUseSelectionTypeForReturn = FALSE , |
||
BOOL | bIsStart = TRUE |
||
) | const |
Given a screen point returns a chart data.
You can use this method to convert screen coordinates (the point should be given in client coordinates of parent control) to Chart coordinates (values on related axes).
Alternatively, call CBCGPChartAxis::ValueFromPoint.
pt | A point in client coordinates. |
roundType | Type of the rounding operation. Can be one of the: RT_EXACT, RT_FLOOR, RT_CEIL or RT_ROUND |
bUseSelectionTypeForReturn | TRUE to use selection type for return. |
bIsStart | Specifies how to round the returned value; TRUE - use "floor" to round the value; FALSE - use "ceil" to round the value. |