ComputerName.cpp
上传用户:haifei
上传日期:2022-07-20
资源大小:77k
文件大小:1k
源码类别:

网络编程

开发平台:

Visual C++

  1. // ComputerName.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "AnalogMeterTest.h"
  5. #include "ComputerName.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CComputerName dialog
  13. CComputerName::CComputerName(CWnd* pParent /*=NULL*/)
  14. : CDialog(CComputerName::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CComputerName)
  17. m_strName = _T("");
  18. m_Connector = _T("");
  19. m_Password = _T("");
  20. //}}AFX_DATA_INIT
  21. }
  22. void CComputerName::DoDataExchange(CDataExchange* pDX)
  23. {
  24. CDialog::DoDataExchange(pDX);
  25. //{{AFX_DATA_MAP(CComputerName)
  26. DDX_Text(pDX, IDC_MAHNAME, m_strName);
  27. DDX_Text(pDX, IDC_CONNECTOR, m_Connector);
  28. DDX_Text(pDX, IDC_PASSWORD, m_Password);
  29. //}}AFX_DATA_MAP
  30. }
  31. BEGIN_MESSAGE_MAP(CComputerName, CDialog)
  32. //{{AFX_MSG_MAP(CComputerName)
  33. //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CComputerName message handlers
  37. BOOL CComputerName::OnInitDialog() 
  38. {
  39. CDialog::OnInitDialog();
  40. // TODO: Add extra initialization here
  41. CButton * pBtn = (CButton *)GetDlgItem(IDC_TITLE);
  42. pBtn->SetWindowText(m_Title);
  43. return TRUE;  // return TRUE unless you set the focus to a control
  44.               // EXCEPTION: OCX Property Pages should return FALSE
  45. }