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

📄 pinput.cpp

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

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

/////////////////////////////////////////////////////////////////////////////
// CPinput dialog


CPinput::CPinput(CWnd* pParent /*=NULL*/)
	: CDialog(CPinput::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPinput)
	m_input = 17;
	//}}AFX_DATA_INIT
}


void CPinput::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPinput)
	DDX_Control(pDX, IDC_EDIT1, m_edt);
	DDX_Text(pDX, IDC_EDIT1, m_input);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CPinput message handlers

void CPinput::OnShowWindow(BOOL bShow, UINT nStatus) 
{
	CDialog::OnShowWindow(bShow, nStatus);
	
	// TODO: Add your message handler code here
	if(bShow==1)
	{
		CTeachMode * parent=(CTeachMode *)GetParent();
		if(parent->flagShow==0)
		{
			m_input=17;
		}
		else 
		{
			int idx=parent->curidx;
			m_input=parent->command[idx].pubpara.pinput;
		}
		UpdateData(FALSE);
	}
}

⌨️ 快捷键说明

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