Click here to Skip to main content
15,893,668 members
Articles / Desktop Programming / MFC

GDI+ Plot ActiveX Control

Rate me:
Please Sign up or sign in to vote.
4.89/5 (10 votes)
5 Sep 2013LGPL32 min read 91.3K   12.1K   65  
GDI+ 2D plot ActiveX control
// HelloWorldDlg.h : header file
//
//{{AFX_INCLUDES()
#include "gdiplusplot.h"
//}}AFX_INCLUDES

#if !defined(AFX_HELLOWORLDDLG_H__797E3E4A_F730_4EF1_B730_482E80747225__INCLUDED_)
#define AFX_HELLOWORLDDLG_H__797E3E4A_F730_4EF1_B730_482E80747225__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CHelloWorldDlg dialog

class CHelloWorldDlg : public CDialog
{
// Construction
public:
	CHelloWorldDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CHelloWorldDlg)
	enum { IDD = IDD_HELLOWORLD_DIALOG };
	CGDIPlusPlot	m_GDIPlusPlot1;
	CGDIPlusPlot	m_GDIPlusPlot2;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHelloWorldDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CHelloWorldDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnButton1();
	afx_msg void OnButt();
	afx_msg void OnButton3();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	int m_CursorX;
};

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

#endif // !defined(AFX_HELLOWORLDDLG_H__797E3E4A_F730_4EF1_B730_482E80747225__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 GNU Lesser General Public License (LGPLv3)


Written By
Engineer
China China
An individual human existence should be like a river - small at first, narrowly contained within its banks, and rushing passionately past boulders and over waterfalls. Gradually the river grows wider, the banks recede, the waters flow more quietly, and in the end, without any visible break, they become merged in the sea, and painlessly lose their individual being.

Comments and Discussions