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

📄 connectdlg.cpp

📁 《医学图象的远程传输系统》
💻 CPP
字号:
// ConnectDlg.cpp : implementation file
//

#include "stdafx.h"
#include "TransClient.h"
#include "ConnectDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CConnectDlg dialog


CConnectDlg::CConnectDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CConnectDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CConnectDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CConnectDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConnectDlg)
	DDX_Control(pDX, IDCANCEL, m_BtnCancel);
	DDX_Control(pDX, IDOK, m_BtnOK);
	DDX_Control(pDX, IDC_IPADDRESS1, m_IpAddress);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CConnectDlg message handlers

void CConnectDlg::OnOK() 
{
	BYTE iB1,iB2,iB3,iB4;
	m_IpAddress.GetAddress(iB1,iB2,iB3,iB4);
	m_sIpAddress.Format("%d.%d.%d.%d",iB1,iB2,iB3,iB4);
	CDialog::OnOK();
}

BOOL CConnectDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
    m_BtnOK.SetIcon(IDI_BTNOK);
    m_BtnCancel.SetIcon(IDI_BTNCANCEL);
    m_BtnOK.SetFlat(FALSE);
    m_BtnCancel.SetFlat(FALSE);
	m_IpAddress.SetAddress(192,168,0,1);	
	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 + -