www.gusucode.com > VC++网络监视仪表模块源码程序 > VC++网络监视仪表模块源码程序\code\ComputerName.cpp
//Download by http://www.NewXing.com // ComputerName.cpp : implementation file // #include "stdafx.h" #include "AnalogMeterTest.h" #include "ComputerName.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CComputerName dialog CComputerName::CComputerName(CWnd* pParent /*=NULL*/) : CDialog(CComputerName::IDD, pParent) { //{{AFX_DATA_INIT(CComputerName) m_strName = _T(""); m_Connector = _T(""); m_Password = _T(""); //}}AFX_DATA_INIT } void CComputerName::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CComputerName) DDX_Text(pDX, IDC_MAHNAME, m_strName); DDX_Text(pDX, IDC_CONNECTOR, m_Connector); DDX_Text(pDX, IDC_PASSWORD, m_Password); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CComputerName, CDialog) //{{AFX_MSG_MAP(CComputerName) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CComputerName message handlers BOOL CComputerName::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here CButton * pBtn = (CButton *)GetDlgItem(IDC_TITLE); pBtn->SetWindowText(m_Title); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }