www.pudn.com > vcframe.rar > Matchfuction.cpp
// Matchfuction.cpp : implementation file
//
#include "stdafx.h"
#include "match.h"
#include "Matchfuction.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Matchfuction
IMPLEMENT_DYNCREATE(Matchfuction, CView)
Matchfuction::Matchfuction()
{
EnableAutomation();
}
Matchfuction::~Matchfuction()
{
}
void Matchfuction::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CView::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(Matchfuction, CView)
//{{AFX_MSG_MAP(Matchfuction)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(Matchfuction, CView)
//{{AFX_DISPATCH_MAP(Matchfuction)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IMatchfuction to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {A2D1E690-5FCA-4BE6-9769-8E347D438A03}
static const IID IID_IMatchfuction =
{ 0xa2d1e690, 0x5fca, 0x4be6, { 0x97, 0x69, 0x8e, 0x34, 0x7d, 0x43, 0x8a, 0x3 } };
BEGIN_INTERFACE_MAP(Matchfuction, CView)
INTERFACE_PART(Matchfuction, IID_IMatchfuction, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Matchfuction drawing
void Matchfuction::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// Matchfuction diagnostics
#ifdef _DEBUG
void Matchfuction::AssertValid() const
{
CView::AssertValid();
}
void Matchfuction::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// Matchfuction message handlers