To use SREGraphView or SREScrollView in a CDialog or CFormview:
Declare a member variable (either a pointer or a variable, say m_myView) in your dialog or form view derivative.
SREGraphView.m_myView |
In your OnInitDialog() or OnInitialUpdate() function, call the Create() function of SREGraphView or SREScrollView class passing it the rectangle in which the chart is to be displayed.
m_myView.Create(NULL, NULL, WS_VISIBLE|WS_CHILD, rc, this, ID_MYVIEW); |
For the SREScrollView class, call SetScrollSizes().
Set the m_pGraph pointer of the SREGraphView or SREScrollView class. Generally, we will set the m_pGraph pointer to an instance of SRGraph stored inside the dialog or form view class.
m_myView.m_pGraph = &m_Graph; |
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.