Click here to Skip to main content
15,896,606 members
Articles / Desktop Programming / MFC

CFlowchartEditor - linking things in CDiagramEditor

Rate me:
Please Sign up or sign in to vote.
4.94/5 (136 votes)
5 Jul 2006Public Domain8 min read 366.6K   33.9K   278  
A flowchart editor with linked objects, based on CDiagramEditor.
// NetworkMapEditorDemoView.h : interface of the CNetworkMapEditorDemoView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_NETWORKMAPEDITORDEMOVIEW_H__80E2069B_E986_45C0_9036_BD0605D06508__INCLUDED_)
#define AFX_NETWORKMAPEDITORDEMOVIEW_H__80E2069B_E986_45C0_9036_BD0605D06508__INCLUDED_

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

#include "NetworkEditor/NetworkEditor.h"

class CNetworkMapEditorDemoView : public CView
{
protected: // create from serialization only
	CNetworkMapEditorDemoView();
	DECLARE_DYNCREATE(CNetworkMapEditorDemoView)

// Attributes
public:
	CNetworkMapEditorDemoDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNetworkMapEditorDemoView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CNetworkMapEditorDemoView)
	afx_msg void OnButtonAddClient();
	afx_msg void OnButtonAddHub();
	afx_msg void OnButtonAddInternet();
	afx_msg void OnButtonAddModem();
	afx_msg void OnButtonAddPrinter();
	afx_msg void OnButtonAddServer();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	CNetworkEditor	m_editor;
	int				m_screenResolutionX;
};

#ifndef _DEBUG  // debug version in NetworkMapEditorDemoView.cpp
inline CNetworkMapEditorDemoDoc* CNetworkMapEditorDemoView::GetDocument()
   { return (CNetworkMapEditorDemoDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_NETWORKMAPEDITORDEMOVIEW_H__80E2069B_E986_45C0_9036_BD0605D06508__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 A Public Domain dedication


Written By
Software Developer (Senior) Abstrakt Mekanik AB
Sweden Sweden
45 years old, married, three kids.

Started with computers more than 20 years ago on a CBM-64.

Read Theoretical Philosophy at the University of Lund.

Working as a C++ consultant developer.

Science-fiction freak. Enjoy vintage punkrock.

Comments and Discussions