📄 newlayerdlg.cpp
字号:
// NewLayerDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ComGIS.h"
#include "NewLayerDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNewLayerDlg dialog
CNewLayerDlg::CNewLayerDlg(CWnd* pParent /*=NULL*/)
: CDialog(CNewLayerDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CNewLayerDlg)
m_csLayerName = _T("");
//}}AFX_DATA_INIT
}
void CNewLayerDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CNewLayerDlg)
DDX_Text(pDX, IDC_EDIT_LAYER_NAME, m_csLayerName);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CNewLayerDlg, CDialog)
//{{AFX_MSG_MAP(CNewLayerDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNewLayerDlg message handlers
void CNewLayerDlg::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
if (!m_csLayerName.IsEmpty())
CDialog::OnOK();
// CDialog::OnOK();
}
void CNewLayerDlg::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
BOOL CNewLayerDlg::OnInitDialog()
{
CDialog::OnInitDialog();
GotoDlgCtrl(GetDlgItem(IDC_EDIT_LAYER_NAME));
CButton *p = (CButton*)GetDlgItem(IDC_RADIO_VECTOR);
p->SetCheck(1);
return FALSE;
// 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 + -