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

📄 dialogtimeset.cpp

📁 这是一个用于工控的上位机系统
💻 CPP
字号:
// DialogTimeset.cpp : implementation file
//

#include "stdafx.h"
#include "TempHumSystem.h"
#include "DialogTimeset.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDialogTimeset dialog


CDialogTimeset::CDialogTimeset(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogTimeset::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogTimeset)
	m_time = 0;
	//}}AFX_DATA_INIT
}


void CDialogTimeset::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogTimeset)
	DDX_Text(pDX, IDC_EDIT_TIME, m_time);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogTimeset, CDialog)
	//{{AFX_MSG_MAP(CDialogTimeset)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogTimeset message handlers

void CDialogTimeset::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	extern int LogTime;
	extern int LogTimeCount;
	LogTimeCount = 0;
	LogTime = m_time;
	CDialog::OnOK();
}

BOOL CDialogTimeset::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_time = 1;
	UpdateData(FALSE);
	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 + -