// Patient.cpp : implementation file // #include "stdafx.h" #include "netapp.h" #include "Patient.h" ///////////////////////////////////////////////////////////////////////////// // CNetFindPatientDlg dialog CNetFindPatientDlg::CNetFindPatientDlg(CWnd* pParent /*=NULL*/) : CDialog(CNetFindPatientDlg::IDD, pParent) { //{{AFX_DATA_INIT(CNetFindPatientDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CNetFindPatientDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CNetFindPatientDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CNetFindPatientDlg, CDialog) //{{AFX_MSG_MAP(CNetFindPatientDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CNetFindPatientDlg message handlers BOOL CNetFindPatientDlg::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 CNetFindPatientDlg::OnOK() { GetDlgItemText(IDC_PATIENT_NAME, m_strPatientName); GetDlgItemText(IDC_PATIENT_ID, m_strPatientID); CDialog::OnOK(); }