Click here to Skip to main content
15,885,028 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_CURVEDLG_H__98B20941_D604_4120_8561_3902741205F0__INCLUDED_)
#define AFX_CURVEDLG_H__98B20941_D604_4120_8561_3902741205F0__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// Dialogfeld CCurveDlg 

#include "XGraphDataSerie.h"
#include "ColorButton.h"

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

	void PresetValues();
// Dialogfelddaten
	//{{AFX_DATA(CCurveDlg)
	enum { IDD = IDD_CURVE };
	CComboBox	m_cbFillCurve;
	CSpinButtonCtrl	m_SpinLineSize;
	CSpinButtonCtrl	m_SpinMarkerSize;
	CComboBox	m_cbMarker;
	CColorButton	m_Color;
	int		m_nType;
	UINT	m_nLineSize;
	int		m_nStyle;
	BOOL	m_bShowMarker;
	BOOL	m_bVisible;
	BOOL	m_bFillBeneath;
	int		m_nFillStyle;
	BOOL	m_bFillTransparent;
	CString	m_cLabel;
	int		m_nMarkerType;
	int		m_nMarker;
	UINT	m_nMarkerSize;
	int		m_nFillCurve;
	//}}AFX_DATA

	CXGraphDataSerie* m_pSerie;

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

// Implementierung
protected:

	// Generierte Nachrichtenzuordnungsfunktionen
	//{{AFX_MSG(CCurveDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnApply();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnChanged();
	afx_msg LRESULT OnColorChanged(WPARAM, LPARAM);
	virtual void OnOK();
	afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
	afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	afx_msg void OnMavg();
	afx_msg void OnLintrend();
	afx_msg void OnCubtrend();
	afx_msg void OnPolytrend();
	virtual void OnCancel();
	afx_msg void OnSelchangeCbfillcurve();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // AFX_CURVEDLG_H__98B20941_D604_4120_8561_3902741205F0__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