|
// 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.
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.