www.pudn.com > 郭尚波的多功能示波器.rar > Draw.cpp


// Draw.cpp : implementation file
//自定义的类CDraw的实现,该类从CStatic继承而来

#include "stdafx.h"
#include "MyDisplay.h"
#include "Draw.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDraw

CDraw::CDraw()
{
}

CDraw::~CDraw()
{
}
void CDraw::setValue(double pA,double pT,double pW)
{
A=pA;
T=pT;
W=pW;
}

void CDraw::draw(CRect rect,CPoint*point,int n)
{
CClientDC dc(this);
CRect rt;
GetClientRect(rt);
dc.Ellipse(rt);
}
void CDraw::overLap(bool flag,CRect rect,CPoint*point1,CPoint*point2,int n)
{

}

BEGIN_MESSAGE_MAP(CDraw, CButton)
//{{AFX_MSG_MAP(CDraw)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDraw message handlers