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

📄 poutput.cpp

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

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

/////////////////////////////////////////////////////////////////////////////
// CPoutput dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// CPoutput message handlers

void CPoutput::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_output=17;
		}
		else
		{
			int idx=parent->curidx;
			m_output=parent->command[idx].pubpara.poutput;
		}
		UpdateData(FALSE);
	}
}

⌨️ 快捷键说明

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