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

📄 mnip.cpp

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

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

/////////////////////////////////////////////////////////////////////////////
// CMnip dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// CMnip message handlers

void CMnip::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_indelay=0;
		else {
			int idx=parent->curidx;
			if(parent->command[idx].mcommand.funid % 2==0)
				m_indelay=parent->command[idx].mcommand.para.dinoff;
			else
				m_indelay=parent->command[idx].mcommand.para.dinon;
		}
	    Temp_str.Format("%6.2f", m_indelay);
        GetDlgItem(IDC_EDIT1)->SetWindowText(Temp_str);
//		UpdateData(FALSE);
	}
}

⌨️ 快捷键说明

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