// Study.cpp : implementation file // #include "stdafx.h" #include "netapp.h" #include "Study.h" ///////////////////////////////////////////////////////////////////////////// // CNetFindStudyDlg dialog CNetFindStudyDlg::CNetFindStudyDlg(CWnd* pParent /*=NULL*/) : CDialog(CNetFindStudyDlg::IDD, pParent) { //{{AFX_DATA_INIT(CNetFindStudyDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CNetFindStudyDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CNetFindStudyDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CNetFindStudyDlg, CDialog) //{{AFX_MSG_MAP(CNetFindStudyDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CNetFindStudyDlg message handlers BOOL CNetFindStudyDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CNetFindStudyDlg::OnOK() { GetDlgItemText(IDC_STUDY_INSTANCE_UID, m_strStudyInstanceUID); GetDlgItemText(IDC_STUDY_ID, m_strStudyID); GetDlgItemText(IDC_ACCESSION_NUMBER, m_strAccessionNumber); GetDlgItemText(IDC_PATIENT_NAME, m_strPatientName); GetDlgItemText(IDC_PATIENT_ID, m_strPatientID); CDialog::OnOK(); }