| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 | 
							- // About.cpp : implementation file
 
- //
 
- //Main branch
 
- #include "stdafx.h"
 
- #include "cp_main.h"
 
- #include "About.h"
 
- #include "InternetUpdate.h"
 
- #ifdef _DEBUG
 
- #define new DEBUG_NEW
 
- #undef THIS_FILE
 
- static char THIS_FILE[] = __FILE__;
 
- #endif
 
- /////////////////////////////////////////////////////////////////////////////
 
- // CAbout property page
 
- IMPLEMENT_DYNCREATE(CAbout, CPropertyPage)
 
- CAbout::CAbout() : CPropertyPage(CAbout::IDD)
 
- {
 
- 	m_csTitle = theApp.m_Language.GetString("AboutTitle", "About");
 
- 	m_psp.pszTitle = m_csTitle;
 
- 	m_psp.dwFlags |= PSP_USETITLE;
 
- 	//{{AFX_DATA_INIT(CAbout)
 
- 		// NOTE: the ClassWizard will add member initialization here
 
- 	//}}AFX_DATA_INIT
 
- }
 
- CAbout::~CAbout()
 
- {
 
- }
 
- void CAbout::DoDataExchange(CDataExchange* pDX)
 
- {
 
- 	CPropertyPage::DoDataExchange(pDX);
 
- 	//{{AFX_DATA_MAP(CAbout)
 
- 	DDX_Control(pDX, IDC_HYPER_LINK, m_HyperLink);
 
- 	DDX_Control(pDX, IDC_LIST, m_List);
 
- 	//}}AFX_DATA_MAP
 
- }
 
- BEGIN_MESSAGE_MAP(CAbout, CPropertyPage)
 
- 	//{{AFX_MSG_MAP(CAbout)
 
- 	//}}AFX_MSG_MAP
 
- END_MESSAGE_MAP()
 
- /////////////////////////////////////////////////////////////////////////////
 
- // CAbout message handlers
 
- BOOL CAbout::OnInitDialog() 
 
- {
 
- 	CPropertyPage::OnInitDialog();
 
- 	m_List.AddString("Ditto");
 
- 	CInternetUpdate update;
 
- 	long lRunningVersion = update.GetRunningVersion();
 
- 	CString cs = update.GetVersionString(lRunningVersion);
 
- 	CString csText;
 
- 	csText = "    Version " + cs;
 
- 	m_List.AddString(csText);
 
- 	cs = CGetSetOptions::GetExeFileName();;
 
- 	csText = "    Exe Path " + cs;
 
- 	m_List.AddString(csText);
 
- 	cs = CGetSetOptions::GetDBPath();
 
- 	csText = "    DB Path " + cs;
 
- 	m_List.AddString(csText);
 
- 	m_List.AddString("");
 
- 	m_List.AddString("Credits");
 
- 	
 
- 	cs = "    Authors - Scott Brogden, [email protected]";
 
- 	m_List.AddString(cs);
 
- 	cs = "            - Kevin Edwards, [email protected]";
 
- 	m_List.AddString(cs);
 
- 	CRect rect;
 
- 	GetClientRect(rect);
 
- 	
 
- 	rect.bottom -= 30;
 
- 	
 
- 	m_List.MoveWindow(rect);
 
- 	rect.top = rect.bottom + 10;
 
- 	rect.bottom = rect.top + 30;
 
- 	
 
- 	m_HyperLink.MoveWindow(rect);
 
- 	m_HyperLink.SetURL(_T("mailto:[email protected]"));
 
- 		
 
- 	return TRUE;  // return TRUE unless you set the focus to a control
 
- 	              // EXCEPTION: OCX Property Pages should return FALSE
 
- }
 
 
  |