From my MFC application I want to replace data in a RT graph. Therefore I use WRResetHistBuffer on the DynDataSet and call WRUpdateBlockData with the new data afterwards. As result I get a graph with a connection (straight line?) from the first point to one of my last points (which is not what I want) in addition to the old data.
Now if I call ::WRResetScroll on the XY plot this line isn't drawn which is fine. But why can't I use QCRTGraphWnd::WRResetScroll? Some ASSERT statement checks if I pass a Scroll Object although ::WRResetScroll accepts XY plots?
In this way this is more an inconvenience than a bug. But perhaps there is a good reason why ::WRResetScroll does not accept plot objects?
The WRResetScroll method works with both XY plots and scroll plot objects. It does not however work with variable scroll plots (created using the WRSetVarScroll setup routines. Is this what you are using ?
This is probably a misunderstanding. Actuallay my current implementation works fine. I use ::WRResetScroll on the XYGraph and everything works out fine. But I can't use QCRTGraphWnd::WRResetScroll (which I tried since my class is a subclass of QCRTGraphWnd) with a handle on a XY plot because of the following code:
The second ASSERT is false on xy plots, right? But I can use ::WRResetScroll(q_pGrDesc, hMyXYPlot) instead (which works fine!). So this ASSERT statement seems to be unnecessary.
You are correct. The ASSERT in the QCRTGraphWnd, which is a class of the our GCL for MFC, is unnecesarry, due to changes made after the library was created. You can comment out the ASSERT and recompile the RT32D project, or call directly into the WRT32DR3 DLL, as you describe.