ComputerName.cpp
上传用户:haifei
上传日期:2022-07-20
资源大小:77k
文件大小:1k
- // 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
- }