?? ex23view.cpp
字號:
// ex23View.cpp : implementation of the CEx23View class
//
#include "stdafx.h"
#include "ex23.h"
#include "ex23Doc.h"
#include "ex23View.h"
#include "MultiTrdDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEx23View
IMPLEMENT_DYNCREATE(CEx23View, CView)
BEGIN_MESSAGE_MAP(CEx23View, CView)
//{{AFX_MSG_MAP(CEx23View)
ON_COMMAND(ID_TEST, OnTest)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEx23View construction/destruction
CEx23View::CEx23View()
{
// TODO: add construction code here
}
CEx23View::~CEx23View()
{
}
BOOL CEx23View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CEx23View drawing
void CEx23View::OnDraw(CDC* pDC)
{
CEx23Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CEx23View printing
BOOL CEx23View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CEx23View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CEx23View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CEx23View diagnostics
#ifdef _DEBUG
void CEx23View::AssertValid() const
{
CView::AssertValid();
}
void CEx23View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CEx23Doc* CEx23View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEx23Doc)));
return (CEx23Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEx23View message handlers
void CEx23View::OnTest()
{
// TODO: Add your command handler code here
m_dlg.DoModal();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -