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

📄 speed.cpp

📁 步进伺服电机运动控制KPCI-884步进伺服电机运动控制vc测试程序
💻 CPP
字号:
// speed.cpp : implementation file
//

#include "stdafx.h"
#include "TEST884.h"
#include "speed.h"
#include "songyun.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//int m_timer2;
/////////////////////////////////////////////////////////////////////////////
// Cspeed dialog


Cspeed::Cspeed(CWnd* pParent /*=NULL*/)
	: CDialog(Cspeed::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cspeed)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


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


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

/////////////////////////////////////////////////////////////////////////////
// Cspeed message handlers





BOOL Cspeed::OnInitDialog() 
{
	CDialog::OnInitDialog();
	POINT p;
	p.x=50;
	p.y=350;
	zbt.origin=p;
	zbt.xmax=620;
	zbt.ymax=320;
	zbt.xkd=23;
	zbt.ykd=15;
    //m_timer2=SetTimer(1,100,0);
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void Cspeed::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	dc.SetBkMode(TRANSPARENT);
	dc.TextOut(245,20,"单个轴的速度曲线图");
	zbt.pxy(&dc);
	zbt.pkd(&dc);
	zbt.pkdz(&dc);
	zbt.psd(&dc);
	// TODO: Add your message handler code here
	
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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