Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

VC中CWGRAPH控件怎样实现坐标缩小?

我在VC6.0中使用了CWGRAPH绘制曲线,利用SetTrackMode()函数实现了坐标的放大和窗口放大,但是放大之后就不能恢复原来的形状了,请问在VC6.0能不能实现坐标的缩小?谢谢!
0 Kudos
Message 1 of 3
(8,260 Views)
The problem you might be experiencing might be due to CWGraph not tracking the necessary events in order to implement both the creation of cursors when you click and the dragging of the cursors with your mouse.  In order to track all events try using the Track All Events option.  The declaration of the function would look like this:
 
m_graph_top.SetTrackMode(CNiGraph::TrackAllEvents);
0 Kudos
Message 2 of 3
(8,242 Views)
0 Kudos
Message 3 of 3
(8,240 Views)