2007-03-27 17:47:10 +00:00
|
|
|
/*
|
|
|
|
* CiderPress
|
|
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
|
|
* See the file LICENSE for distribution terms.
|
|
|
|
*/
|
|
|
|
// AboutDlg.cpp : implementation file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "mdc.h"
|
|
|
|
#include "AboutDlg.h"
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
#undef THIS_FILE
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// AboutDlg dialog
|
|
|
|
|
|
|
|
|
|
|
|
AboutDlg::AboutDlg(CWnd* pParent /*=NULL*/)
|
2014-11-04 00:26:53 +00:00
|
|
|
: CDialog(AboutDlg::IDD, pParent)
|
2007-03-27 17:47:10 +00:00
|
|
|
{
|
2014-11-04 00:26:53 +00:00
|
|
|
//{{AFX_DATA_INIT(AboutDlg)
|
|
|
|
// NOTE: the ClassWizard will add member initialization here
|
|
|
|
//}}AFX_DATA_INIT
|
2007-03-27 17:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(AboutDlg, CDialog)
|
2014-11-04 00:26:53 +00:00
|
|
|
//{{AFX_MSG_MAP(AboutDlg)
|
|
|
|
//}}AFX_MSG_MAP
|
2007-03-27 17:47:10 +00:00
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// AboutDlg message handlers
|
|
|
|
|
|
|
|
BOOL AboutDlg::OnInitDialog()
|
|
|
|
{
|
2014-11-04 00:26:53 +00:00
|
|
|
CDialog::OnInitDialog();
|
|
|
|
|
|
|
|
// TODO: Add extra initialization here
|
|
|
|
CWnd* pWnd = GetDlgItem(IDC_ABOUT_VERS);
|
2014-11-18 05:13:13 +00:00
|
|
|
ASSERT(pWnd != NULL);
|
2014-11-04 00:26:53 +00:00
|
|
|
CString fmt, newText;
|
|
|
|
|
|
|
|
pWnd->GetWindowText(fmt);
|
|
|
|
newText.Format(fmt, kAppMajorVersion, kAppMinorVersion, kAppBugVersion);
|
|
|
|
pWnd->SetWindowText(newText);
|
2014-11-25 22:34:14 +00:00
|
|
|
LOGD("STR is '%ls'", (LPCWSTR) newText);
|
2014-11-04 00:26:53 +00:00
|
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
2007-03-27 17:47:10 +00:00
|
|
|
}
|