Click here to Skip to main content
15,886,755 members
Articles / Desktop Programming / MFC

2D Graph ActiveX Control

Rate me:
Please Sign up or sign in to vote.
4.89/5 (159 votes)
5 Aug 2003MIT8 min read 1.5M   70.2K   339  
An ActiveX control for 2D data visualisation
#if !defined(AFX_ANNOPPG_H__C05F14EB_EEFC_4EDB_9D6F_F86547275571__INCLUDED_)
#define AFX_ANNOPPG_H__C05F14EB_EEFC_4EDB_9D6F_F86547275571__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AnnoPpg.h : header file
//
#include "ColourPicker.h"
/////////////////////////////////////////////////////////////////////////////
// CAnnoPropPage : Property page dialog

class CAnnoPropPage : public COlePropertyPage
{
	DECLARE_DYNCREATE(CAnnoPropPage)
	DECLARE_OLECREATE_EX(CAnnoPropPage)

// Constructors
public:
	CAnnoPropPage();

// Dialog Data
	//{{AFX_DATA(CAnnoPropPage)
	enum { IDD = IDD_PROPPAGE_ANNOTATION };
	CColourPicker	m_btnBkColor;
	CColourPicker	m_btnColor;
	CButton	m_btnVisible;
	CComboBox	m_cbOrientation;
	CListBox	m_lbAnnotations;
	//}}AFX_DATA

// Implementation
protected:
	virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
	LPDISPATCH GetControlDispatch();
	void AddAnnotation();
	void DeleteAnnotation(short annoID);
	void UpdateControls();


// Message maps
protected:
	//{{AFX_MSG(CAnnoPropPage)
	afx_msg void OnAddbutton();
	afx_msg void OnDelbutton();
	afx_msg void OnSelchangeAnnotations();
	virtual BOOL OnInitDialog();
	afx_msg void OnChangeEditCaption();
	afx_msg void OnChangeEditX();
	afx_msg void OnChangeEditY();
	afx_msg void OnCloseupComboOrientation();
	afx_msg void OnCheckVisible();
	afx_msg LONG OnColorChange(UINT lParam, LONG wParam);
	afx_msg LONG OnBkColorChange(UINT lParam, LONG wParam);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ANNOPPG_H__C05F14EB_EEFC_4EDB_9D6F_F86547275571__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, along with any associated source code and files, is licensed under The MIT License


Written By
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