inputport.cpp

来自「Visual_C++.NET精彩案例237.rar」· C++ 代码 · 共 45 行

CPP
45
字号
// InPutPort.cpp : 实现文件
//

#include "stdafx.h"
#include "net.h"
#include "InPutPort.h"

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


// CInPutPort 对话框


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


void CInPutPort::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInPutPort)
	DDX_Text(pDX, IDC_EDIT1, m_nInPort);
	DDV_MinMaxInt(pDX, m_nInPort, 1, 999);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInPutPort, CDialog)
	//{{AFX_MSG_MAP(CInPutPort)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInPutPort message handlers

⌨️ 快捷键说明

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