Input.cpp
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:1k
源码类别:

SNMP编程

开发平台:

Visual C++

  1. // Input.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "NetMap.h"
  5. #include "Input.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CInput dialog
  13. CInput::CInput(CWnd* pParent /*=NULL*/)
  14. : CDialog(CInput::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CInput)
  17. m_community = _T("");
  18. //}}AFX_DATA_INIT
  19. }
  20. void CInput::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(CInput)
  24. DDX_Control(pDX, IDC_IPADDRESS1, m_ipaddress);
  25. DDX_Text(pDX, IDC_EDIT2, m_community);
  26. //}}AFX_DATA_MAP
  27. }
  28. BEGIN_MESSAGE_MAP(CInput, CDialog)
  29. //{{AFX_MSG_MAP(CInput)
  30. ON_BN_CLICKED(IDAPP, OnApp)
  31. //}}AFX_MSG_MAP
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CInput message handlers
  35. void CInput::OnApp() 
  36. {
  37. m_ipaddress.GetWindowText(m_ip);
  38. }