// PageSystemInfo.cpp : implementation file // #include "stdafx.h" #include "mgrnve.h" #include "PageSystemInfo.h" #include "ConnectionManager.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPageSystemInfo dialog CPageSystemInfo::CPageSystemInfo(CWnd* pParent, CMgrNVE* pMgrCM, CConnectionManager *pConnMgr) : CParamDlg(CPageSystemInfo::IDD, pParent, pMgrCM, pConnMgr) { //{{AFX_DATA_INIT(CPageSystemInfo) m_strInfo = _T(""); //}}AFX_DATA_INIT m_pCod5 = NULL; } void CPageSystemInfo::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPageSystemInfo) DDX_Text(pDX, IDC_EDIT_SYSTEM_INFO, m_strInfo); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CPageSystemInfo, CDialog) //{{AFX_MSG_MAP(CPageSystemInfo) ON_BN_CLICKED(IDC_BTN_HW_INFO, OnBtnHwInfo) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPageSystemInfo message handlers BOOL CPageSystemInfo::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_pCod5 = m_pConnection->GetCod5Api(); m_pMsgMgr = m_pMgrNVE->GetMsgManager(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CPageSystemInfo::OnBtnHwInfo() { // TODO: Add your control notification handler code here CHECK_AND_RETURN(m_pCod5->Cod5QueryInfo(CMN5_QIC_GET_HWINFO_STR, 0, m_pConnection->GetGlobalSettings()->InformationString), "Cod5QueryInfo failed"); m_strInfo = m_pConnection->GetGlobalSettings()->InformationString; UpdateData(FALSE); }