📄 taskinall.cpp
字号:
// TaskInall.cpp : implementation file
//
#include "stdafx.h"
#include "fms_simulation.h"
#include "TaskInall.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern int task_inall;
extern unsigned long time_manu_inall;
extern unsigned long time_manu[10];
/////////////////////////////////////////////////////////////////////////////
// CTaskInall dialog
CTaskInall::CTaskInall(CWnd* pParent /*=NULL*/)
: CDialog(CTaskInall::IDD, pParent)
{
//{{AFX_DATA_INIT(CTaskInall)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CTaskInall::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTaskInall)
DDX_Control(pDX, IDC_TaskInall_List, m_ListBox);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTaskInall, CDialog)
//{{AFX_MSG_MAP(CTaskInall)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTaskInall message handlers
void CTaskInall::OnSetFont(CFont* pFont)
{
// TODO: Add your specialized code here and/or call the base class
CDialog::OnSetFont(pFont);
}
BOOL CTaskInall::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
int i;
task_all.Format("Amount of Task: %d",task_inall);
run_time.Format("The Time of run: %d ms",time_manu_inall);
for(i=0;i<10;i++)
assem_time[i].Format("The time of Assem %d: %d ms",i+1,time_manu[i]);
m_ListBox.AddString(task_all);
m_ListBox.AddString(run_time);
for(i=0;i<10;i++)
m_ListBox.AddString(assem_time[i]);
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 + -