home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / AboutDialog.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.2 KB  |  84 lines

  1. // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
  2. // Copyright (C) 1999-2003 Forgotten
  3. // Copyright (C) 2004 Forgotten and the VBA development team
  4.  
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation; either version 2, or(at your option)
  8. // any later version.
  9. //
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18.  
  19. // AboutDialog.cpp : implementation file
  20. //
  21.  
  22. #include "AboutDialog.h"
  23. #include "../AutoBuild.h"
  24. #include "resource.h"
  25.  
  26. #ifdef _DEBUG
  27. #define new DEBUG_NEW
  28. #undef THIS_FILE
  29. static char THIS_FILE[] = __FILE__;
  30. #endif
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // AboutDialog dialog
  34.  
  35.  
  36. AboutDialog::AboutDialog(CWnd* pParent /*=NULL*/)
  37.   : CDialog(AboutDialog::IDD, pParent)
  38. {
  39.   //{{AFX_DATA_INIT(AboutDialog)
  40.   m_version = _T(VERSION);
  41.   //}}AFX_DATA_INIT
  42. }
  43.  
  44.  
  45. void AboutDialog::DoDataExchange(CDataExchange* pDX)
  46. {
  47.   CDialog::DoDataExchange(pDX);
  48.   //{{AFX_DATA_MAP(AboutDialog)
  49.   DDX_Text(pDX, IDC_VERSION, m_version);
  50.   DDX_Control(pDX, IDC_URL, m_link);
  51.   //}}AFX_DATA_MAP
  52. }
  53.  
  54.  
  55. BEGIN_MESSAGE_MAP(AboutDialog, CDialog)
  56.   //{{AFX_MSG_MAP(AboutDialog)
  57.   //}}AFX_MSG_MAP
  58.   END_MESSAGE_MAP()
  59.  
  60.   /////////////////////////////////////////////////////////////////////////////
  61. // AboutDialog message handlers
  62.  
  63. BOOL AboutDialog::OnInitDialog() 
  64. {
  65.   CDialog::OnInitDialog();
  66.   
  67.   CWnd *p = GetDlgItem(IDC_TRANSLATOR_URL);
  68.   if(p) {
  69.     m_translator.SubclassDlgItem(IDC_TRANSLATOR_URL, this);
  70.   }
  71.  
  72.   m_link.SetWindowText("http://vba.ngemu.com");
  73.  
  74.   return TRUE;  // return TRUE unless you set the focus to a control
  75.   // EXCEPTION: OCX Property Pages should return FALSE
  76. }
  77.  
  78. void AboutDialog::OnOK() 
  79. {
  80.   // TODO: Add extra validation here
  81.   
  82.   CDialog::OnOK();
  83. }
  84.