void CCustomMouseListener:: OnMouseEventSeries(CChartMouseListener::MouseEvent mouseEvent, CPoint point,
CChartSerieBase<SChartXYPoint>* pSerie, unsigned uPointIndex)
{
//double XValue = 0.0;
if (mouseEvent == CChartMouseListener::LButtonDown &&
uPointIndex != INVALID_POINT)
{
TChartStringStream ssText;

SChartXYPoint Point = pSerie->GetPoint(uPointIndex);
XValue = Point.X;
ssText << _T("  X value=") << XValue << _T(",Y value=") << Point.Y;
//ssText << _T("  X value=") << Point.X << _T(",Y value=") << Point.Y; TChartString strText = ssText.str();

//MessageBox(NULL, strText.c_str(), _T("Info"), MB_OK);
MessageBox(NULL, strText.
c_str(), pSerie->GetName().c_str(), MB_OK);
//XXValue = Point.X;
}
}获取的XValue值 想出现在文本框中