Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // NewKeyValue.cpp : implementation file
  9. //
  10. #include "stdafx.h"
  11. #include "hammer.h"
  12. #include "NewKeyValue.h"
  13. // memdbgon must be the last include file in a .cpp file!!!
  14. #include <tier0/memdbgon.h>
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CNewKeyValue dialog
  17. CNewKeyValue::CNewKeyValue(CWnd* pParent /*=NULL*/)
  18. : CDialog(CNewKeyValue::IDD, pParent)
  19. {
  20. //{{AFX_DATA_INIT(CNewKeyValue)
  21. m_Key = _T("");
  22. m_Value = _T("");
  23. //}}AFX_DATA_INIT
  24. }
  25. void CNewKeyValue::DoDataExchange(CDataExchange* pDX)
  26. {
  27. CDialog::DoDataExchange(pDX);
  28. //{{AFX_DATA_MAP(CNewKeyValue)
  29. DDX_Text(pDX, IDC_KEY, m_Key);
  30. DDV_MaxChars(pDX, m_Key, 31);
  31. DDX_Text(pDX, IDC_VALUE, m_Value);
  32. DDV_MaxChars(pDX, m_Value, 80);
  33. //}}AFX_DATA_MAP
  34. }
  35. BEGIN_MESSAGE_MAP(CNewKeyValue, CDialog)
  36. //{{AFX_MSG_MAP(CNewKeyValue)
  37. // NOTE: the ClassWizard will add message map macros here
  38. //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CNewKeyValue message handlers