📄 chooserulerdlg.cpp
字号:
// ChooseRulerDlg.cpp : implementation file
//
#include "stdafx.h"
#include "source10.h"
#include "ChooseRulerDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CChooseRulerDlg dialog
CChooseRulerDlg::CChooseRulerDlg(CWnd* pParent /*=NULL*/)
: CDialog(CChooseRulerDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CChooseRulerDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_bCM = TRUE;
}
void CChooseRulerDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CChooseRulerDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CChooseRulerDlg, CDialog)
//{{AFX_MSG_MAP(CChooseRulerDlg)
ON_BN_CLICKED(IDC_RADIO_CM, OnRadioCm)
ON_BN_CLICKED(IDC_RADIO_INCH, OnRadioInch)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CChooseRulerDlg message handlers
//当产生对话框或检查DOMODAL时响应消息WM_INITDIALOG调用此函数,此对话框立即显示
BOOL CChooseRulerDlg::OnInitDialog()
{
CDialog::OnInitDialog();
//检查单选框并设立标志,清除其它单选框的标志
CheckRadioButton( IDC_RADIO_CM, IDC_RADIO_INCH, IDC_RADIO_CM );
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CChooseRulerDlg::OnRadioCm()
{
m_bCM = TRUE;
}
void CChooseRulerDlg::OnRadioInch()
{
m_bCM = FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -