📄 polysetupdlg.cpp
字号:
// PolySetupDlg.cpp : implementation file
//
#include "stdafx.h"
#include "mapper.h"
#include "PolySetupDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPolySetupDlg dialog
CPolySetupDlg::CPolySetupDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPolySetupDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPolySetupDlg)
m_nOutlineWidth = 0;
m_nFillList = -1;
m_nOutline = -1;
//}}AFX_DATA_INIT
}
void CPolySetupDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPolySetupDlg)
DDX_Control(pDX, IDC_FILL_LIST, m_oFillList);
DDX_Control(pDX, IDC_OUTLINE_COLOR, m_oOutlineColor);
DDX_Control(pDX, IDC_FILL_COLOR, m_oFillColor);
DDX_Text(pDX, IDC_OUTLINE_WIDTH, m_nOutlineWidth);
DDV_MinMaxInt(pDX, m_nOutlineWidth, 0, 15);
DDX_CBIndex(pDX, IDC_FILL_LIST, m_nFillList);
DDX_CBIndex(pDX, IDC_OUTLINE, m_nOutline);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPolySetupDlg, CDialog)
//{{AFX_MSG_MAP(CPolySetupDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPolySetupDlg message handlers
BOOL CPolySetupDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_oFillList.AddIcon(IDI_FILL_ICON00);
m_oFillList.AddIcon(IDI_FILL_ICON01);
m_oFillList.AddIcon(IDI_FILL_ICON02);
m_oFillList.AddIcon(IDI_FILL_ICON03);
m_oFillList.AddIcon(IDI_FILL_ICON04);
m_oFillList.AddIcon(IDI_FILL_ICON05);
m_oFillList.AddIcon(IDI_FILL_ICON06);
m_oFillList.AddIcon(IDI_FILL_ICON07);
m_oFillList.AddIcon(IDI_FILL_ICON08);
m_oFillList.AddIcon(IDI_FILL_ICON09);
m_oFillList.AddIcon(IDI_FILL_ICON10);
m_oFillList.SetCurSel(m_nFillList);
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 + -