Click here to Skip to main content
15,881,866 members
Articles / Desktop Programming / MFC

High-speed Charting Control

Rate me:
Please Sign up or sign in to vote.
4.95/5 (327 votes)
13 Jul 2010CPOL35 min read 4.2M   100.4K   787  
A flexible charting control to display 2D data
// SurfacePropDialog.cpp : implementation file
//

#include "stdafx.h"
#include "chartdemo.h"
#include "SurfacePropDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSurfacePropDialog dialog


CSurfacePropDialog::CSurfacePropDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CSurfacePropDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSurfacePropDialog)
	m_iHorizSurf = -1;
	m_FillStyle = -1;
	//}}AFX_DATA_INIT
}


void CSurfacePropDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSurfacePropDialog)
	DDX_Radio(pDX, IDC_HORIZONTAL_RADIO, m_iHorizSurf);
	DDX_CBIndex(pDX, IDC_FILLSTYLE_COMBO, m_FillStyle);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSurfacePropDialog, CDialog)
	//{{AFX_MSG_MAP(CSurfacePropDialog)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSurfacePropDialog message handlers

BOOL CSurfacePropDialog::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_FillStyle = 0;
	m_iHorizSurf = 0;
	UpdateData(FALSE);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSurfacePropDialog::OnOK() 
{
	UpdateData(TRUE);	
	CDialog::OnOK();
}

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Belgium Belgium
I am a 29 years old guy and I live with my girlfriend in Hoegaarden, little city from Belgium well known for its white beer Smile | :) .
I studied as an industrial engineer in electronics but I oriented myself more towards software development when I started to work.
Currently I am working in a research centre in mechatronica. I mainly develop in C++ but I also do a bit of Java.
When I have so spare time, I like to read (mainly fantasy) and play electric guitar.

Comments and Discussions