📄 scaledialog.cpp
字号:
// ScaleDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Sketcher.h"
#include "ScaleDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CScaleDialog dialog
CScaleDialog::CScaleDialog(CWnd* pParent /*=NULL*/)
: CDialog(CScaleDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CScaleDialog)
m_Scale = -1;
//}}AFX_DATA_INIT
}
void CScaleDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CScaleDialog)
DDX_LBIndex(pDX, IDC_SCALELIST, m_Scale);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CScaleDialog, CDialog)
//{{AFX_MSG_MAP(CScaleDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CScaleDialog message handlers
BOOL CScaleDialog::OnInitDialog()
{
CDialog::OnInitDialog();
CListBox* pListBox = static_cast<CListBox*>(GetDlgItem(IDC_SCALELIST));
pListBox->AddString("Scale 1");
pListBox->AddString("Scale 2");
pListBox->AddString("Scale 3");
pListBox->AddString("Scale 4");
pListBox->AddString("Scale 5");
pListBox->AddString("Scale 6");
pListBox->AddString("Scale 7");
pListBox->AddString("Scale 8");
pListBox->SetCurSel(m_Scale - 1);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -