statistic.cpp

来自「一个在VC环境下写的很好的串口调试软件」· C++ 代码 · 共 63 行

CPP
63
字号
// Statistic.cpp : implementation file
//

#include "stdafx.h"
#include "CommWizard.h"
#include "Statistic.h"

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

/////////////////////////////////////////////////////////////////////////////
// CStatistic dialog


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


void CStatistic::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStatistic)
	DDX_Text(pDX, IDC_STATISTICSHOW, m_nCountShow);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CStatistic message handlers

BOOL CStatistic::OnInitDialog() 
{
	CDialog::OnInitDialog();
	//m_nCountShow=0;
	// TODO: Add extra initialization here
	UpdateData(FALSE);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CStatistic::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);

	UpdateData(FALSE);
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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