diff 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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/AboutDialog.cpp	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,60 @@
     1.4 +// AboutDialog.cpp : implementation file
     1.5 +//
     1.6 +
     1.7 +#include "stdafx.h"
     1.8 +#include "resource.h"
     1.9 +#include "AboutDialog.h"
    1.10 +
    1.11 +#include "../version.h"
    1.12 +
    1.13 +/////////////////////////////////////////////////////////////////////////////
    1.14 +// AboutDialog dialog
    1.15 +
    1.16 +AboutDialog::AboutDialog(CWnd*pParent /*=NULL*/)
    1.17 +	: CDialog(AboutDialog::IDD, pParent)
    1.18 +{
    1.19 +	//{{AFX_DATA_INIT(AboutDialog)
    1.20 +	m_version = _T(VBA_VERSION_STRING);
    1.21 +	//}}AFX_DATA_INIT
    1.22 +}
    1.23 +
    1.24 +void AboutDialog::DoDataExchange(CDataExchange*pDX)
    1.25 +{
    1.26 +	CDialog::DoDataExchange(pDX);
    1.27 +	//{{AFX_DATA_MAP(AboutDialog)
    1.28 +	DDX_Text(pDX, IDC_VERSION, m_version);
    1.29 +	DDX_Control(pDX, IDC_URL, m_link);
    1.30 +	//}}AFX_DATA_MAP
    1.31 +}
    1.32 +
    1.33 +BEGIN_MESSAGE_MAP(AboutDialog, CDialog)
    1.34 +//{{AFX_MSG_MAP(AboutDialog)
    1.35 +//}}AFX_MSG_MAP
    1.36 +END_MESSAGE_MAP()
    1.37 +
    1.38 +/////////////////////////////////////////////////////////////////////////////
    1.39 +// AboutDialog message handlers
    1.40 +
    1.41 +BOOL AboutDialog::OnInitDialog()
    1.42 +{
    1.43 +	CDialog::OnInitDialog();
    1.44 +
    1.45 +	CWnd *p = GetDlgItem(IDC_TRANSLATOR_URL);
    1.46 +	if (p)
    1.47 +	{
    1.48 +		m_translator.SubclassDlgItem(IDC_TRANSLATOR_URL, this);
    1.49 +	}
    1.50 +
    1.51 +	m_link.SetWindowText(VBA_RR_SITE);
    1.52 +
    1.53 +	return TRUE; // return TRUE unless you set the focus to a control
    1.54 +	// EXCEPTION: OCX Property Pages should return FALSE
    1.55 +}
    1.56 +
    1.57 +void AboutDialog::OnOK()
    1.58 +{
    1.59 +	// TODO: Add extra validation here
    1.60 +
    1.61 +	CDialog::OnOK();
    1.62 +}
    1.63 +