📄 funsetdlg.cpp
字号:
// FunSetDlg.cpp : implementation file
//
#include "stdafx.h"
#include "mdf.h"
#include "FunSetDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFunSetDlg dialog
//##ModelId=465286A4005E
CFunSetDlg::CFunSetDlg(CWnd* pParent /*=NULL*/)
: CDialog(CFunSetDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CFunSetDlg)
//}}AFX_DATA_INIT
}
//##ModelId=465286A4006E
void CFunSetDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFunSetDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CFunSetDlg, CDialog)
//{{AFX_MSG_MAP(CFunSetDlg)
ON_BN_CLICKED(IDC_MSG, OnMsg)
ON_BN_CLICKED(IDC_VOICE, OnVoice)
ON_BN_CLICKED(IDC_WEB, OnWeb)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFunSetDlg message handlers
//##ModelId=465286A40071
void CFunSetDlg::OnMsg()
{
// TODO: Add your control notification handler code here
if( ((CButton*)GetDlgItem(IDC_MSG))->GetCheck() == 1 )
{
m_bMsg = TRUE ;
}
else
m_bMsg = FALSE ;
}
//##ModelId=465286A4007D
void CFunSetDlg::OnVoice()
{
// TODO: Add your control notification handler code here
if( ((CButton*)GetDlgItem(IDC_VOICE))->GetCheck() == 1 )
{
m_bVoice = TRUE ;
}
else
m_bVoice = FALSE ;
}
//##ModelId=465286A4007F
void CFunSetDlg::OnWeb()
{
// TODO: Add your control notification handler code here
if( ((CButton*)GetDlgItem(IDC_WEB))->GetCheck() == 1 )
{
m_bWeb = TRUE;
}
else
m_bWeb = FALSE;
}
//##ModelId=465286A40081
BOOL CFunSetDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
if( m_bWeb )
((CButton*)GetDlgItem(IDC_WEB))->SetCheck(1) ;
if( m_bMsg )
((CButton*)GetDlgItem(IDC_MSG))->SetCheck(1) ;
if( m_bVoice )
((CButton*)GetDlgItem(IDC_VOICE))->SetCheck(1) ;
return TRUE;
// return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
//##ModelId=465286A40060
BOOL CFunSetDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN )
{
return TRUE ;
}
return CDialog::PreTranslateMessage(pMsg);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -