📄 insertvertexdlg.cpp
字号:
// InsertVertexDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CollegeWizard.h"
#include "InsertVertexDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInsertVertexDlg dialog
CInsertVertexDlg::CInsertVertexDlg(CWnd* pParent /*=NULL*/)
: CDialog(CInsertVertexDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CInsertVertexDlg)
m_finishedTime = _T("");
m_information = _T("");
m_name = _T("");
m_isConstructure = -1;
//}}AFX_DATA_INIT
}
void CInsertVertexDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInsertVertexDlg)
DDX_Text(pDX, IDC_EDIT_FINISHEDTIME, m_finishedTime);
DDV_MaxChars(pDX, m_finishedTime, 40);
DDX_Text(pDX, IDC_EDIT_INFORMATION, m_information);
DDX_Text(pDX, IDC_EDIT_NAME, m_name);
DDV_MaxChars(pDX, m_name, 40);
DDX_Radio(pDX, IDC_RADIO_CONSTRUCTURE, m_isConstructure);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInsertVertexDlg, CDialog)
//{{AFX_MSG_MAP(CInsertVertexDlg)
ON_BN_CLICKED(IDC_RADIO_CONSTRUCTURE, OnRadioConstructure)
ON_BN_CLICKED(IDC_RADIO_SIGHT, OnRadioSight)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInsertVertexDlg message handlers
void CInsertVertexDlg::OnRadioConstructure()
{
// TODO: Add your control notification handler code here
m_isConstructure = TRUE;
}
void CInsertVertexDlg::OnRadioSight()
{
// TODO: Add your control notification handler code here
m_isConstructure = FALSE;
}
BOOL CInsertVertexDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
CButton* p;
p = (CButton*)GetDlgItem(IDC_RADIO_CONSTRUCTURE);
p->SetCheck(TRUE);
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 + -