// CVrfyDlg.h : header file #if !defined(AFX_DICVFRYDLG_H__8CE55E1C_DDFB_4C61_82F8_15FDBE739BCB__INCLUDED_) #define AFX_DICVFRYDLG_H__8CE55E1C_DDFB_4C61_82F8_15FDBE739BCB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include #include "VrfySCU.h" #define ID_TIMEOUT_TIMER 1 #define REGISTRY_LOCATION "SOFTWARE\\LEAD Technologies, Inc.\\DicomVRF" ///////////////////////////////////////////////////////////// // Derived class from VrfySCU.cpp class CMyVerifyClass : public LVrfySCU { public: CDialog* m_pWnd; CMyVerifyClass () : m_pWnd(NULL) { } L_VOID OnStatus(L_UINT uStatus, L_INT nErrorCode); CString GetStatusText(L_UINT uStatusConst); }; ///////////////////////////////////////////////////////////////////////////// // CDicVfryDlg dialog class CDicVfryDlg : public CDialog { // Construction public: CMyVerifyClass m_VrfySCU; CRegKey m_cMyRegKey; CDicVfryDlg (CWnd* pParent = NULL); // standard constructor L_VOID OnStatus (L_UINT uStatus); L_VOID EnableDisableControl(L_BOOL bEnable); void OnStartTimer (); // Dialog Data //{{AFX_DATA(CDicVfryDlg) enum { IDD = IDD_DICOMVRF_DIALOG }; CEdit m_Edit_TimeOut; CEdit m_Edit_ServerPort; CEdit m_Edit_ServerName; CEdit m_Edit_ClientName; CIPAddressCtrl m_cServerIPAddress; CButton m_VerifyButton; CButton m_AbortButton; CString m_sClientName; CString m_sStatus; CString m_sServerName; UINT m_uServerPort; UINT m_uTimeOut; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDicVfryDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CDicVfryDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnAbort(); afx_msg void OnTimer(UINT nIDEvent); virtual void OnCancel(); afx_msg void OnClose(); afx_msg void OnVerify(); afx_msg void OnChangeEditSvrName(); afx_msg void OnChangeEditClientName(); afx_msg void OnButtonCancel(); afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: L_UINT m_uCountTimer; DWORD m_dwServerIP; L_BOOL EnabledVerify(); L_VOID ReadDataFromRegistry(); L_VOID SaveInRegistry(); }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DICVFRYDLG_H__8CE55E1C_DDFB_4C61_82F8_15FDBE739BCB__INCLUDED_)