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

📄 fixtureadddlg.cpp

📁 实时监控
💻 CPP
字号:
// FixtureAddDlg.cpp : implementation file
//

#include "stdafx.h"
#include "../resource.h"
//#include "mapele.h"
#include "FixtureAddDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFixtureAddDlg dialog


CFixtureAddDlg::CFixtureAddDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CFixtureAddDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFixtureAddDlg)
	m_channelNum = 0;
	m_port = 8101;
	m_strName = _T("");
	//}}AFX_DATA_INIT
}


void CFixtureAddDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFixtureAddDlg)
	DDX_Control(pDX, IDC_IPADDRESS1, m_ipAddr);
	DDX_CBIndex(pDX, IDC_COMBOBOXEX1, m_channelNum);
	DDX_Text(pDX, IDC_EDIT1, m_port);
	DDX_Text(pDX, IDC_EDIT2, m_strName);
	//}}AFX_DATA_MAP
	m_ipAddr.SetAddress(192,168,0,1) ;
}


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

/////////////////////////////////////////////////////////////////////////////
// CFixtureAddDlg message handlers

BOOL CFixtureAddDlg::Create(CWnd* pParentWnd) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	return CDialog::Create(IDD, pParentWnd);
}
 
void CFixtureAddDlg::OnOK() 
{
	// TODO: Add extra validation here	
	m_ipAddr.GetAddress(ip) ;
	UpdateData(TRUE) ;
	CDialog::OnOK();
}

BOOL CFixtureAddDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	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 + -