LayerAttributeDlg.cpp
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:1k
- #include "stdafx.h"
- #include "LayerAttributeDlg.h"
- // CLayerAttributeDlg dialog
- CLayerAttributeDlg::CLayerAttributeDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CLayerAttributeDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CLayerAttributeDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CLayerAttributeDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CLayerAttributeDlg)
- DDX_Control(pDX, IDC_LAYERNAME, m_LayerName);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CLayerAttributeDlg, CDialog)
- //{{AFX_MSG_MAP(CLayerAttributeDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CLayerAttributeDlg message handlers
- CString CLayerAttributeDlg::Show(CString name)
- {
- layername = name;
- DoModal();
- return layername;
- }
- BOOL CLayerAttributeDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- m_LayerName.SetWindowText(layername);
-
- return TRUE;
- }
- void CLayerAttributeDlg::OnOK()
- {
- m_LayerName.GetWindowText(layername);
- CDialog::OnOK();
- }