CDataSettingsDialog members
CDataSettingsDialog is derived from CDialog. It can be called simply from within CXYChart as follows:
CDataSettingsDialog dialog( NULL, this );
dialog.m_CurDataSet = whichDataSet; // whichDataSet is zero-based
if( dialog.DoModal() == IDOK )
{
// Need to update chart
}
Although the class is public, it is better to call the DataSettings function of CXYChart directly.
CDataSettingsDialog requires that the dialog resource with id IDD_DATA_SETTINGS exist in the current file. See the tutorial for more information on copying resources.
These are the members of CDataSettingsDialog:
Functions
- CDataSettingsDialog( CWnd* pParent, CXYChart *chart ) - The default constructor requires a pointer to an XY chart object from which to obtain the current data settings, and to copy the settings back into. The parent window can be NULL or point to the parent window.
Variables
- int m_CurDataSet - Set to the data set to display before calling DoModal. Default = 0
CPlot Reference