Click here to Skip to main content
15,885,216 members
Articles / Desktop Programming / MFC

Scientific charting control

Rate me:
Please Sign up or sign in to vote.
4.84/5 (122 votes)
17 Jan 20055 min read 1.3M   42.6K   405  
Multi-purpose scientific charting control.
#if !defined(AFX_CHARTDLG_H__D0E86027_EA50_43B7_B81C_6187862BABD5__INCLUDED_)
#define AFX_CHARTDLG_H__D0E86027_EA50_43B7_B81C_6187862BABD5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChartDlg.h : Header-Datei
//

/////////////////////////////////////////////////////////////////////////////
// Dialogfeld CChartDlg 

#include "XGraph.h"
#include "ColorButton.h"

class CChartDlg : public CDialog
{
// Konstruktion
public:
	CChartDlg(CWnd* pParent = NULL);   // Standardkonstruktor

// Dialogfelddaten
	//{{AFX_DATA(CChartDlg)
	enum { IDD = IDD_CHART };
	CSpinButtonCtrl	m_SpinTol;
	CComboBox	m_cbCurve;
	CComboBox	m_cbYAxis;
	CComboBox	m_cbXAxis;
	CComboBox	m_Alignment;
	CColorButton	m_InnerColor;
	CColorButton	m_CharColor;
	CColorButton	m_BkColor;
	BOOL	m_bShowLegend;
	BOOL	m_bDoubleBuffer;
	int		m_nXAxis;
	int		m_nYAxis;
	int		m_nCurve;
	BOOL	m_bSnapCursor;
	UINT	m_nTolerance;
	//}}AFX_DATA


	CXGraph *m_pGraph;

// �berschreibungen
	// Vom Klassen-Assistenten generierte virtuelle Funktions�berschreibungen
	//{{AFX_VIRTUAL(CChartDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterst�tzung
	//}}AFX_VIRTUAL

// Implementierung
protected:

	// Generierte Nachrichtenzuordnungsfunktionen
	//{{AFX_MSG(CChartDlg)
	afx_msg void OnChanged();
	afx_msg LRESULT OnColorChanged(WPARAM, LPARAM);
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnApply();
	virtual void OnCancel();
	afx_msg void OnSelchangeCbxaxis();
	afx_msg void OnSelchangeCbyaxis();
	afx_msg void OnSelchangeCbcurve();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ f�gt unmittelbar vor der vorhergehenden Zeile zus�tzliche Deklarationen ein.

#endif // AFX_CHARTDLG_H__D0E86027_EA50_43B7_B81C_6187862BABD5__INCLUDED_

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions