📄 arrowdlg.cpp
字号:
// ArrowDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Cg50.h"
#include "ArrowDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CArrowDlg dialog
CArrowDlg::CArrowDlg(CWnd* pParent /*=NULL*/)
: CDialog(CArrowDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CArrowDlg)
m_arrow_length = 4;
m_arrow_width = 2;
//}}AFX_DATA_INIT
}
void CArrowDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CArrowDlg)
DDX_Text(pDX, IDC_LENGTH_EDIT, m_arrow_length);
DDV_MinMaxInt(pDX, m_arrow_length, 1, 1000);
DDX_Text(pDX, IDC_WIDTH_EDIT, m_arrow_width);
DDV_MinMaxInt(pDX, m_arrow_width, 0, 1000);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CArrowDlg, CDialog)
//{{AFX_MSG_MAP(CArrowDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CArrowDlg message handlers
BOOL CArrowDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CheckRadioButton(IDC_ONESIDE_RADIO, IDC_TWOSIDE_RADIO, IDC_ONESIDE_RADIO);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CArrowDlg::OnOK()
{
if(GetCheckedRadioButton(IDC_ONESIDE_RADIO, IDC_TWOSIDE_RADIO) == IDC_ONESIDE_RADIO)
m_type = 1;
else m_type = 2;
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -