Mercurial > vba-clojure
view src/win32/AboutDialog.cpp @ 8:08a8e09ca414
add files required by automake
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:54:39 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 // AboutDialog.cpp : implementation file2 //4 #include "stdafx.h"5 #include "resource.h"6 #include "AboutDialog.h"8 #include "../version.h"10 /////////////////////////////////////////////////////////////////////////////11 // AboutDialog dialog13 AboutDialog::AboutDialog(CWnd*pParent /*=NULL*/)14 : CDialog(AboutDialog::IDD, pParent)15 {16 //{{AFX_DATA_INIT(AboutDialog)17 m_version = _T(VBA_VERSION_STRING);18 //}}AFX_DATA_INIT19 }21 void AboutDialog::DoDataExchange(CDataExchange*pDX)22 {23 CDialog::DoDataExchange(pDX);24 //{{AFX_DATA_MAP(AboutDialog)25 DDX_Text(pDX, IDC_VERSION, m_version);26 DDX_Control(pDX, IDC_URL, m_link);27 //}}AFX_DATA_MAP28 }30 BEGIN_MESSAGE_MAP(AboutDialog, CDialog)31 //{{AFX_MSG_MAP(AboutDialog)32 //}}AFX_MSG_MAP33 END_MESSAGE_MAP()35 /////////////////////////////////////////////////////////////////////////////36 // AboutDialog message handlers38 BOOL AboutDialog::OnInitDialog()39 {40 CDialog::OnInitDialog();42 CWnd *p = GetDlgItem(IDC_TRANSLATOR_URL);43 if (p)44 {45 m_translator.SubclassDlgItem(IDC_TRANSLATOR_URL, this);46 }48 m_link.SetWindowText(VBA_RR_SITE);50 return TRUE; // return TRUE unless you set the focus to a control51 // EXCEPTION: OCX Property Pages should return FALSE52 }54 void AboutDialog::OnOK()55 {56 // TODO: Add extra validation here58 CDialog::OnOK();59 }