12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- // ViewNameDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "IDE.h"
- #include "ViewNameDlg.h"
- #include ".\viewnamedlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CViewNameDlg dialog
- CViewNameDlg::CViewNameDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CViewNameDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CViewNameDlg)
- m_strViewName = _T("");
- //}}AFX_DATA_INIT
- }
- void CViewNameDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CViewNameDlg)
- DDX_Text(pDX, IDC_VIEWNAME, m_strViewName);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CViewNameDlg, CDialog)
- //{{AFX_MSG_MAP(CViewNameDlg)
- // NOTE: the ClassWizard will add message map macros here
- //}}AFX_MSG_MAP
- ON_WM_SHOWWINDOW()
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CViewNameDlg message handlers
- void CViewNameDlg::OnShowWindow(BOOL bShow, UINT nStatus)
- {
- CDialog::OnShowWindow(bShow, nStatus);
- // TODO: 在此处添加消息处理程序代码
- ((CEdit *)GetDlgItem(IDC_VIEWNAME))->SetFocus();
- }
- BOOL CViewNameDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: 在此添加额外的初始化
- UpdateData(false);
- return TRUE; // return TRUE unless you set the focus to a control
- // 异常: OCX 属性页应返回 FALSE
- }
|