📄 initialset.cpp
字号:
// CInitialSet.cpp : implementation file
//
#include "stdafx.h"
#include "MyCH.h"
#include "InitialSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInitialSet dialog
CInitialSet::CInitialSet(CWnd* pParent /*=NULL*/)
: CDialog(CInitialSet::IDD, pParent)
{
//{{AFX_DATA_INIT(CInitialSet)
m_NodeNum = 10000;
m_NodeSize = 2;
m_SrcHeigth = 600;
m_SrcWidth = 1000;
m_TopleftX = 10;
m_TopleftY = 10;
m_NodeStyleIndex = -1;
//}}AFX_DATA_INIT
}
void CInitialSet::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInitialSet)
DDX_Control(pDX, IDC_NODE_STYLE, m_NodeStyle);
DDX_Text(pDX, IDC_NODE_NUM, m_NodeNum);
DDV_MinMaxInt(pDX, m_NodeNum, 3, 2147483647);
DDX_Text(pDX, IDC_NODE_SIZE, m_NodeSize);
DDV_MinMaxInt(pDX, m_NodeSize, 1, 10);
DDX_Text(pDX, IDC_SCREEN_HEIGTH, m_SrcHeigth);
DDV_MinMaxInt(pDX, m_SrcHeigth, 2, 1024);
DDX_Text(pDX, IDC_SCREEN_WIDTH, m_SrcWidth);
DDV_MinMaxInt(pDX, m_SrcWidth, 2, 1024);
DDX_Text(pDX, IDC_TOPLEFT_X, m_TopleftX);
DDV_MinMaxInt(pDX, m_TopleftX, 2, 1024);
DDX_Text(pDX, IDC_TOPLEFT_Y, m_TopleftY);
DDV_MinMaxInt(pDX, m_TopleftY, 2, 1024);
/* 关于DDX_CBIndex
DDX_CBIndex( CDataExchange* pDX, int nIDC, int& index );
When DDX_CBIndex is called, index is set
to the index of the current combo box selection.
If no item is selected, index is set to 0.
*/// m_NodeStyleIndex关联为组合框的索引值
DDX_CBIndex(pDX, IDC_NODE_STYLE, m_NodeStyleIndex);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInitialSet, CDialog)
//{{AFX_MSG_MAP(CInitialSet)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInitialSet message handlers
BOOL CInitialSet::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_NodeStyle.InsertString(0,"圆形");
m_NodeStyle.InsertString(1,"十字形");
m_NodeStyle.SetCurSel(0);
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 + -