moutput.cpp
来自「机械手IPC控制器伺服运动程序」· C++ 代码 · 共 68 行
CPP
68 行
// Moutput.cpp : implementation file
//
#include "stdafx.h"
#include "alfa.h"
#include "Moutput.h"
#include "TeachMode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMoutput dialog
CMoutput::CMoutput(CWnd* pParent /*=NULL*/)
: CDialog(CMoutput::IDD, pParent)
{
//{{AFX_DATA_INIT(CMoutput)
m_out = 17;
//}}AFX_DATA_INIT
}
void CMoutput::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMoutput)
DDX_Control(pDX, IDC_EDIT1, m_edit);
DDX_Text(pDX, IDC_EDIT1, m_out);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CMoutput, CDialog)
//{{AFX_MSG_MAP(CMoutput)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMoutput message handlers
void CMoutput::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_out=17;
}
else
{
int idx=parent->curidx;
m_out=parent->command[idx].mcommand.para.mout;
}
UpdateData(FALSE);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?