?? dlgset.cpp
字號(hào):
// DlgSet.cpp : 實(shí)現(xiàn)文件
//
#include "stdafx.h"
#include "Temperature.h"
#include "DlgSet.h"
// CDlgSet 對(duì)話框
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("設(shè)置") );
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 屬性頁應(yīng)返回 FALSE
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -