AboutSNDlg.cpp
1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// AboutSNDlg.cpp : implementation file
//
#include "stdafx.h"
#include "SN Writer.h"
#include "AboutSNDlg.h"
#include "SNBase.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutSNDlg dialog
CAboutSNDlg::CAboutSNDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAboutSNDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CAboutSNDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CAboutSNDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutSNDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutSNDlg, CDialog)
//{{AFX_MSG_MAP(CAboutSNDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAboutSNDlg message handlers
BOOL CAboutSNDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// SN Writer Version
const char *p_version;
CString strVersion;
CString toolVersion = g_strToolVersion;
((CWnd*)GetDlgItem(IDC_SN_VERSION))->SetWindowText(toolVersion);
// SPBootMode.dll Version
// Can't Get Directly
// META_DLL.dll Version
META_GetDLLInfo(&p_version, NULL, NULL, NULL);
strVersion = p_version;
((CWnd*)GetDlgItem(IDC_METADLL_VERSION))->SetWindowText(strVersion);
// SP_META_DLL.dll Version
SPMETA_DLL::SP_META_GetDLLInfo(&p_version, NULL, NULL, NULL);
strVersion = p_version;
((CWnd*)GetDlgItem(IDC_SPMETADLL_VERSION))->SetWindowText(strVersion);
// return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
return TRUE;
}