📄 dlgset.cpp
字号:
// DlgSet.cpp : 实现文件
//
#include "stdafx.h"
#include "Temperature.h"
#include "DlgSet.h"
// CDlgSet 对话框
IMPLEMENT_DYNAMIC(CDlgSet, CDialog)
CDlgSet::CDlgSet(CWnd* pParent /*=NULL*/)
: CDialog(CDlgSet::IDD, pParent)
, m_nLang(0)
, m_nCom(0)
{
}
CDlgSet::~CDlgSet()
{
}
void CDlgSet::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Radio(pDX, IDC_RADIO7, m_nLang);
DDX_Radio(pDX, IDC_RADIO1, m_nCom);
}
BEGIN_MESSAGE_MAP(CDlgSet, CDialog)
ON_BN_CLICKED(IDOK, &CDlgSet::OnBnClickedOk)
END_MESSAGE_MAP()
// CDlgSet 消息处理程序
void CDlgSet::OnBnClickedOk()
{
//UpdateData( FALSE );
OnOK();
}
BOOL CDlgSet::OnInitDialog()
{
CDialog::OnInitDialog();
if( theApp.m_Lang == 0 )
{
SetWindowText( _T("设置") );
CString str;
str.LoadString( IDS_STR_CHINESE );
GetDlgItem( IDC_RADIO7 )->SetWindowText( str );
//str.LoadString( IDS_STR_ENGLISH );
//GetDlgItem( IDC_RADIO8 )->SetWindowText( str );
str.LoadString( IDS_STR_OK );
GetDlgItem( IDOK )->SetWindowText( str );
str.LoadString( IDS_STR_CANCEL );
GetDlgItem( IDCANCEL )->SetWindowText( str );
str.LoadString( IDS_STR_COM_CH );
GetDlgItem( IDC_STATIC_COM )->SetWindowText( str );
str.LoadString( IDS_STR_LANG_CH );
GetDlgItem( IDC_STATIC_LAN )->SetWindowText( str );
}
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -