FriendDetails.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // FriendDetails.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "cp_main.h"
  5. #include "FriendDetails.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CFriendDetails dialog
  13. CFriendDetails::CFriendDetails(CWnd* pParent /*=NULL*/)
  14. : CDialog(CFriendDetails::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CFriendDetails)
  17. m_checkSendAll = FALSE;
  18. m_csDescription = _T("");
  19. m_csIP = _T("");
  20. //}}AFX_DATA_INIT
  21. }
  22. void CFriendDetails::DoDataExchange(CDataExchange* pDX)
  23. {
  24. CDialog::DoDataExchange(pDX);
  25. //{{AFX_DATA_MAP(CFriendDetails)
  26. DDX_Check(pDX, IDC_CHECK_SEND_ALL, m_checkSendAll);
  27. DDX_Text(pDX, IDC_EDIT_DESCRIPTION, m_csDescription);
  28. DDX_Text(pDX, IDC_EDIT_IP, m_csIP);
  29. //}}AFX_DATA_MAP
  30. }
  31. BEGIN_MESSAGE_MAP(CFriendDetails, CDialog)
  32. //{{AFX_MSG_MAP(CFriendDetails)
  33. // NOTE: the ClassWizard will add message map macros here
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CFriendDetails message handlers
  38. BOOL CFriendDetails::OnInitDialog()
  39. {
  40. CDialog::OnInitDialog();
  41. UpdateData(FALSE);
  42. theApp.m_Language.UpdateOptionFriendsDetail(this);
  43. return TRUE; // return TRUE unless you set the focus to a control
  44. // EXCEPTION: OCX Property Pages should return FALSE
  45. }
  46. void CFriendDetails::OnOK()
  47. {
  48. UpdateData();
  49. CDialog::OnOK();
  50. }