?? treedlg.cpp
字號:
// TreeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "mcds.h"
#include "TreeDlg.h"
#include "GlobalVar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTreeDlg dialog
CTreeDlg::CTreeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTreeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTreeDlg)
//}}AFX_DATA_INIT
}
void CTreeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTreeDlg)
DDX_Control(pDX, IDCANCEL, m_ButtonCancel);
DDX_Control(pDX, IDOK, m_ButtonOK);
DDX_Control(pDX, IDC_EDIT2, m_Edit2);
DDX_Control(pDX, IDC_EDIT1, m_Edit1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTreeDlg, CDialog)
//{{AFX_MSG_MAP(CTreeDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTreeDlg message handlers
BOOL CTreeDlg::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
return CDialog::Create(IDD, pParentWnd);
}
BOOL CTreeDlg::PreCreateWindow(CREATESTRUCT& cs)
{
return CDialog::PreCreateWindow(cs);
}
BOOL CTreeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
cs.Lock();
m_Edit2.SetWindowText(nNumInfo[nExNum]);
m_Edit1.SetWindowText(strTextInfo[nExNum]);
cs.Unlock();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTreeDlg::OnOK()
{
// TODO: Add extra validation here
cs.Lock();
m_Edit2.GetWindowText(nNumInfo[nExNum]);
cs.Unlock();
CDialog::OnOK();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -