annotate src/win32/AboutDialog.cpp @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
rev   line source
rlm@1 1 // AboutDialog.cpp : implementation file
rlm@1 2 //
rlm@1 3
rlm@1 4 #include "stdafx.h"
rlm@1 5 #include "resource.h"
rlm@1 6 #include "AboutDialog.h"
rlm@1 7
rlm@1 8 #include "../version.h"
rlm@1 9
rlm@1 10 /////////////////////////////////////////////////////////////////////////////
rlm@1 11 // AboutDialog dialog
rlm@1 12
rlm@1 13 AboutDialog::AboutDialog(CWnd*pParent /*=NULL*/)
rlm@1 14 : CDialog(AboutDialog::IDD, pParent)
rlm@1 15 {
rlm@1 16 //{{AFX_DATA_INIT(AboutDialog)
rlm@1 17 m_version = _T(VBA_VERSION_STRING);
rlm@1 18 //}}AFX_DATA_INIT
rlm@1 19 }
rlm@1 20
rlm@1 21 void AboutDialog::DoDataExchange(CDataExchange*pDX)
rlm@1 22 {
rlm@1 23 CDialog::DoDataExchange(pDX);
rlm@1 24 //{{AFX_DATA_MAP(AboutDialog)
rlm@1 25 DDX_Text(pDX, IDC_VERSION, m_version);
rlm@1 26 DDX_Control(pDX, IDC_URL, m_link);
rlm@1 27 //}}AFX_DATA_MAP
rlm@1 28 }
rlm@1 29
rlm@1 30 BEGIN_MESSAGE_MAP(AboutDialog, CDialog)
rlm@1 31 //{{AFX_MSG_MAP(AboutDialog)
rlm@1 32 //}}AFX_MSG_MAP
rlm@1 33 END_MESSAGE_MAP()
rlm@1 34
rlm@1 35 /////////////////////////////////////////////////////////////////////////////
rlm@1 36 // AboutDialog message handlers
rlm@1 37
rlm@1 38 BOOL AboutDialog::OnInitDialog()
rlm@1 39 {
rlm@1 40 CDialog::OnInitDialog();
rlm@1 41
rlm@1 42 CWnd *p = GetDlgItem(IDC_TRANSLATOR_URL);
rlm@1 43 if (p)
rlm@1 44 {
rlm@1 45 m_translator.SubclassDlgItem(IDC_TRANSLATOR_URL, this);
rlm@1 46 }
rlm@1 47
rlm@1 48 m_link.SetWindowText(VBA_RR_SITE);
rlm@1 49
rlm@1 50 return TRUE; // return TRUE unless you set the focus to a control
rlm@1 51 // EXCEPTION: OCX Property Pages should return FALSE
rlm@1 52 }
rlm@1 53
rlm@1 54 void AboutDialog::OnOK()
rlm@1 55 {
rlm@1 56 // TODO: Add extra validation here
rlm@1 57
rlm@1 58 CDialog::OnOK();
rlm@1 59 }
rlm@1 60