User (Legacy) Posted May 29, 2003 Report Share Posted May 29, 2003 Hi All, We'd like to get current scroll information about a chart. For this purpose we use PaintInfo method with CPI_SCROLLINFO parameter passed into it. Unfortunately, it doesn't seem working in our code - the method returns 0 value. We use ChartFX Client Server v.5.0.6.0. (Windows 2000 SP3, MS DevStudio 6, C++, MFC). The following is a code snippet: void Cfx_AxisX_ScrollInfo(IChartFXPtr pChartFX, short& act_pos, short& max_pos) { _variant_t vAxis((short)AXIS_X); _variant_t vPos = pChartFX->PaintInfo(CPI_SCROLLINFO, vAxis); act_pos = LOWORD(vPos.lVal); max_pos = HIWORD(vPos.lVal); } Any help on this matter would be greatly appreciated. Thanks, Anton. Link to comment Share on other sites More sharing options...
Software FX Posted May 31, 2003 Report Share Posted May 31, 2003 CPI_SCROLLINFO is obsolete. I recommend you use the GetScrollView method (Axis object) instead. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.