AboutDlg.cpp
上传用户:zslianheng
上传日期:2013-04-03
资源大小:946k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Visual C++

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *   This program is free software; you can redistribute it and/or modify  *
  4.  *   it under the terms of the GNU General Public License as published by  *
  5.  *   the Free Software Foundation; either version 2 of the License, or     *
  6.  *   (at your option) any later version.                                   *
  7.  *                                                                         *
  8.  *   copyright            : (C) 2002 by Zhang Yong                         *
  9.  *   email                : z-yong163@163.com                              *
  10.  ***************************************************************************/
  11. // AboutDlg.cpp : implementation file
  12. //
  13. #include "stdafx.h"
  14. #include "myicq.h"
  15. #include "AboutDlg.h"
  16. #ifdef _DEBUG
  17. #define new DEBUG_NEW
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CAboutDlg dialog
  23. CAboutDlg::CAboutDlg(CWnd* pParent /*=NULL*/)
  24. : CDialog(CAboutDlg::IDD, pParent)
  25. {
  26. //{{AFX_DATA_INIT(CAboutDlg)
  27. //}}AFX_DATA_INIT
  28. }
  29. void CAboutDlg::DoDataExchange(CDataExchange* pDX)
  30. {
  31. CDialog::DoDataExchange(pDX);
  32. //{{AFX_DATA_MAP(CAboutDlg)
  33. DDX_Control(pDX, IDC_EMAIL, m_ctlEmail);
  34. //}}AFX_DATA_MAP
  35. }
  36. BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
  37. //{{AFX_MSG_MAP(CAboutDlg)
  38. //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CAboutDlg message handlers
  42. BOOL CAboutDlg::OnInitDialog() 
  43. {
  44. CDialog::OnInitDialog();
  45. CString str;
  46. m_ctlEmail.GetWindowText(str);
  47. m_ctlEmail.SetURL("mailto:" + str);
  48. return TRUE;  // return TRUE unless you set the focus to a control
  49.               // EXCEPTION: OCX Property Pages should return FALSE
  50. }