// UserPDlg.cpp : implementation file // #include "stdafx.h" #include "dicomsrv.h" #include "UserPDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CUserPropDlg dialog CUserPropDlg::CUserPropDlg(CWnd* pParent /*=NULL*/) : CDialog(CUserPropDlg::IDD, pParent) { //{{AFX_DATA_INIT(CUserPropDlg) m_sAETitle = _T("CLIENT1"); m_sIPAddress = _T("1.1.1.1"); m_uPortNumber = 0; m_uTimeOut = 0; //}}AFX_DATA_INIT } void CUserPropDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CUserPropDlg) DDX_Text(pDX, IDC_EDIT1, m_sAETitle); DDX_Text(pDX, IDC_EDIT2, m_sIPAddress); DDX_Text(pDX, IDC_EDIT3, m_uPortNumber); DDV_MinMaxUInt(pDX, m_uPortNumber, 0, 99999); DDX_Text(pDX, IDC_EDIT_TIMEOUT, m_uTimeOut); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CUserPropDlg, CDialog) //{{AFX_MSG_MAP(CUserPropDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CUserPropDlg message handlers BOOL CUserPropDlg::OnInitDialog() { CDialog::OnInitDialog(); UpdateData(FALSE); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }