twain3.0/huagao/CAboutDlg.cpp

62 lines
1.3 KiB
C++
Raw Permalink Normal View History

// CAboutDlg.cpp: 实现文件
//
#include "stdafx.h"
#include "CAboutDlg.h"
#include "afxdialogex.h"
#include "resource.h"
// CAboutDlg 对话框
IMPLEMENT_DYNAMIC(CAboutDlg, CDialogEx)
CAboutDlg::CAboutDlg(std::string hardwareversion, std::string serialnum,CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_ABOUT, pParent)
,m_hardwareversion(hardwareversion)
,m_serialnum(serialnum)
{
}
CAboutDlg::~CAboutDlg()
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx)
ON_BN_CLICKED(IDOK, &CAboutDlg::OnBnClickedOk)
END_MESSAGE_MAP()
// CAboutDlg 消息处理程序
BOOL CAboutDlg::OnInitDialog()
{
CDialogEx::OnInitDialog();
// TODO: 在此添加额外的初始化
CString hardwareversion(m_hardwareversion.c_str());
CString serialnum(m_serialnum.c_str());
SetDlgItemText(IDC_LBSCANNERNAMEVALUE, SCANNERNAME);
SetDlgItemText(IDC_LBHARDWAREVALUE, hardwareversion);
SetDlgItemText(IDC_LBSERIALNUMVALUE, serialnum);
SetDlgItemText(IDC_LBDERIVERVERSON, HG_VERSION_INFO);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
void CAboutDlg::OnBnClickedOk()
{
// TODO: 在此添加控件通知处理程序代码
CDialogEx::OnOK();
}