56 lines
1.2 KiB
C++
56 lines
1.2 KiB
C++
// CUpdateDlg.cpp: 实现文件
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "afxdialogex.h"
|
|
#include "CUpdateDlg.h"
|
|
#include "resource.h"
|
|
|
|
// CUpdateDlg 对话框
|
|
|
|
IMPLEMENT_DYNAMIC(CUpdateDlg, CDialogEx)
|
|
|
|
CUpdateDlg::CUpdateDlg(CWnd* pParent /*=nullptr*/)
|
|
: CDialogLangEx(IDD_DIALOG_UPDATE, pParent)
|
|
, m_nSelected(0)
|
|
{
|
|
|
|
}
|
|
|
|
CUpdateDlg::~CUpdateDlg()
|
|
{
|
|
}
|
|
|
|
void CUpdateDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
__super::DoDataExchange(pDX);
|
|
DDX_Control(pDX, IDC_COMBO_UPDATE_SELECT, m_ComboUpdateSelect);
|
|
DDX_CBIndex(pDX, IDC_COMBO_UPDATE_SELECT, m_nSelected);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CUpdateDlg, CDialogEx)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CUpdateDlg 消息处理程序
|
|
|
|
BOOL CUpdateDlg::OnInitDialog()
|
|
{
|
|
__super::OnInitDialog();
|
|
// 多语言翻译 - Static控件
|
|
SetDlgItemText(IDC_STATIC_UPDATE_TYPE, _TR("目标程序类型:"));
|
|
|
|
// 设置对话框标题和控件文本(解决英语系统乱码问题)
|
|
SetWindowText(_TR("升级程序"));
|
|
SetDlgItemText(IDOK, _TR("确定"));
|
|
SetDlgItemText(IDCANCEL, _TR("取消"));
|
|
|
|
// TODO: 在此添加额外的初始化
|
|
m_ComboUpdateSelect.InsertStringL(0, _T("TestRun"));
|
|
m_ComboUpdateSelect.InsertStringL(1, _T("Ghost"));
|
|
m_ComboUpdateSelect.SetCurSel(1);
|
|
|
|
return TRUE;
|
|
}
|