home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
distrib.akp.su/Programming/Vb-6+Rus/
/
distrib.akp.su.tar
/
distrib.akp.su
/
Programming
/
Vb-6+Rus
/
COMMON
/
MSDEV98
/
BIN
/
IDE
/
DEVGAL.PKG
/
TEMPLATE
/
22344
< prev
next >
Wrap
Text File
|
1998-06-18
|
3KB
|
110 lines
// $$VAL:BaseViewCpp$$ : implementation of the $$VAL:BaseViewClass$$ class
//
#include "stdafx.h"
#include "$$VAL:ResInclude$$"
#include "$$VAL:BaseViewHeader$$"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// $$VAL:BaseViewClass$$
IMPLEMENT_DYNCREATE($$VAL:BaseViewClass$$, CView)
BEGIN_MESSAGE_MAP($$VAL:BaseViewClass$$, CView)
//{{AFX_MSG_MAP($$VAL:BaseViewClass$$)
// 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
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// $$VAL:BaseViewClass$$ construction/destruction
$$VAL:BaseViewClass$$::$$VAL:BaseViewClass$$()
{
// TODO: add construction code here
}
$$VAL:BaseViewClass$$::~$$VAL:BaseViewClass$$()
{
}
BOOL $$VAL:BaseViewClass$$::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// $$VAL:BaseViewClass$$ drawing
void $$VAL:BaseViewClass$$::OnDraw(CDC* pDC)
{
$$VAL:BaseDocClass$$* pDoc = GetDocument();
ASSERT_VALID(pDoc);
HENHMETAFILE hMetaFile = pDoc->GetMetaFile ();
if (hMetaFile != NULL)
{
CRect rect;
GetClientRect (&rect);
::PlayEnhMetaFile (pDC->m_hDC, hMetaFile, &rect);
}
}
/////////////////////////////////////////////////////////////////////////////
// $$VAL:BaseViewClass$$ printing
BOOL $$VAL:BaseViewClass$$::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void $$VAL:BaseViewClass$$::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void $$VAL:BaseViewClass$$::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// $$VAL:BaseViewClass$$ diagnostics
#ifdef _DEBUG
void $$VAL:BaseViewClass$$::AssertValid() const
{
CView::AssertValid();
}
void $$VAL:BaseViewClass$$::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
$$VAL:BaseDocClass$$* $$VAL:BaseViewClass$$::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS($$VAL:BaseDocClass$$)));
return ($$VAL:BaseDocClass$$*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// $$VAL:BaseViewClass$$ message handlers