⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawafreq.cpp

📁 项目的研究内容是对硅微谐振式加速度计的数据采集电路开展研究工作。硅微谐振式加速度计敏感结构输出的是两路差分的频率信号
💻 CPP
字号:
// DRAWAFREQ.cpp : implementation file
//

#include "stdafx.h"
#include "item4.h"
#include "DRAWAFREQ.h"
#include "Item4Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// DRAWAFREQ dialog


DRAWAFREQ::DRAWAFREQ(CWnd* pParent /*=NULL*/)
	: CDialog(DRAWAFREQ::IDD, pParent)
{

	//{{AFX_DATA_INIT(DRAWAFREQ)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void DRAWAFREQ::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DRAWAFREQ)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DRAWAFREQ, CDialog)
	//{{AFX_MSG_MAP(DRAWAFREQ)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DRAWAFREQ message handlers

void DRAWAFREQ::Draw(POINT Poi)
{
	CClientDC pDC(this);
	CPen SolidPen(PS_SOLID,1,RGB(255,0,0));
	pDC.SelectObject(&SolidPen);
	pDC.Ellipse(Poi.x-1,Poi.y-1,Poi.x+1,Poi.y+1);
}


DRAWAFREQ::DRAWAFREQ(CDialog *pDialog)
{
	this->mpDialog=pDialog;
}

BOOL DRAWAFREQ::Create()
{
	return CDialog::Create(DRAWAFREQ::IDD);
}

void DRAWAFREQ::OnPaint() 
{
	CPaintDC pDC(this); // device context for painting
	pDC.MoveTo(50,300);
	pDC.LineTo(50,10);
	pDC.MoveTo(50,150);
	pDC.LineTo(600,150);
	pDC.LineTo(590,145);
	pDC.MoveTo(600,150);
	pDC.LineTo(590,155);
	pDC.MoveTo(50,10);
	pDC.LineTo(45,20);
	pDC.MoveTo(50,10);
	pDC.LineTo(55,20);
	pDC.TextOut(5,150,"20000");
	pDC.MoveTo(50,30);
	pDC.LineTo(55,30);
	pDC.TextOut(5,30,"22500");
	pDC.MoveTo(50,270);
	pDC.LineTo(55,270);
	pDC.TextOut(5,270,"17500");
	pDC.TextOut(10,10,"Hz");
	// TODO: Add your message handler code here
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -