Click here to Skip to main content
15,891,372 members
Articles / Multimedia / GDI

S.I.V.: A Simple Pie Chart with Legend

Rate me:
Please Sign up or sign in to vote.
2.43/5 (4 votes)
3 Aug 20045 min read 48.3K   1.9K   18  
Simplicity Is Virtue : how do draw a simple pie chart almost anywhere
// sdiDoc.h : interface of the CSdiDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SDIDOC_H__2542956D_BE83_45E6_B104_149ED07D7A92__INCLUDED_)
#define AFX_SDIDOC_H__2542956D_BE83_45E6_B104_149ED07D7A92__INCLUDED_

#include "PieChart.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CSdiDoc : public CDocument
{
protected: // create from serialization only
	CSdiDoc();
	DECLARE_DYNCREATE(CSdiDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSdiDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	CPieChart m_chart;
	virtual ~CSdiDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSdiDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SDIDOC_H__2542956D_BE83_45E6_B104_149ED07D7A92__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.


Written By
Web Developer
Croatia Croatia
A software developer for the masses..

Comments and Discussions