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

📄 mdelay.cpp

📁 机械手IPC控制器伺服运动程序
💻 CPP
字号:
// Mdelay.cpp : implementation file
//

#include "stdafx.h"
#include "alfa.h"
#include "Mdelay.h"
#include "TeachMode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMdelay dialog


CMdelay::CMdelay(CWnd* pParent /*=NULL*/)
	: CDialog(CMdelay::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMdelay)
	m_delay = 0.0f;
	//}}AFX_DATA_INIT
}


void CMdelay::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMdelay)
	DDX_Control(pDX, IDC_EDIT1, m_edit);
	DDX_Text(pDX, IDC_EDIT1, m_delay);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMdelay, CDialog)
	//{{AFX_MSG_MAP(CMdelay)
	ON_WM_SHOWWINDOW()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMdelay message handlers

void CMdelay::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	CDialog::OnShowWindow(bShow, nStatus);
    CString Temp_str;
	
	// TODO: Add your message handler code here
	if(bShow==1) {
		CTeachMode * parent=(CTeachMode *)GetParent();
		if(parent->flagShow==0) m_delay=0;
		else {
			int idx=parent->curidx;
			m_delay=parent->command[idx].mcommand.para.mdelay;
		}
		Temp_str.Format("%6.2f", m_delay);
        GetDlgItem(IDC_EDIT1)->SetWindowText(Temp_str);
		UpdateData(FALSE);
	}
}

BOOL CMdelay::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	h_SkinDialog.SubClassDialog(m_hWnd);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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