home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep (Enterprise)
/
OpenStepENTCD.toast
/
OEDEV
/
DEV.Z
/
mycalvw.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-16
|
2KB
|
74 lines
// MyCalvw.cpp : implementation of the CMyCalcView class
//
#include "stdafx.h"
#include "MyCalc.h"
#include "MyCaldoc.h"
#include "MyCalvw.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyCalcView
IMPLEMENT_DYNCREATE(CMyCalcView, CView)
BEGIN_MESSAGE_MAP(CMyCalcView, CView)
//{{AFX_MSG_MAP(CMyCalcView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyCalcView construction/destruction
CMyCalcView::CMyCalcView()
{
// TODO: add construction code here
}
CMyCalcView::~CMyCalcView()
{
}
/////////////////////////////////////////////////////////////////////////////
// CMyCalcView drawing
void CMyCalcView::OnDraw(CDC* pDC)
{
CMyCalcDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMyCalcView diagnostics
#ifdef _DEBUG
void CMyCalcView::AssertValid() const
{
CView::AssertValid();
}
void CMyCalcView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMyCalcDoc* CMyCalcView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMyCalcDoc)));
return (CMyCalcDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMyCalcView message handlers