📄 mydlldemoview.cpp
字号:
// MyDLLDemoView.cpp : implementation of the CMyDLLDemoView class
//
#include "stdafx.h"
#include "MyDLLDemo.h"
#include "MyDLLDemoDoc.h"
#include "MyDLLDemoView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyDLLDemoView
IMPLEMENT_DYNCREATE(CMyDLLDemoView, CView)
BEGIN_MESSAGE_MAP(CMyDLLDemoView, CView)
//{{AFX_MSG_MAP(CMyDLLDemoView)
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CMyDLLDemoView construction/destruction
CMyDLLDemoView::CMyDLLDemoView()
{
// TODO: add construction code here
}
CMyDLLDemoView::~CMyDLLDemoView()
{
}
BOOL CMyDLLDemoView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMyDLLDemoView drawing
void CMyDLLDemoView::OnDraw(CDC* pDC)
{
CMyDLLDemoDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMyDLLDemoView printing
BOOL CMyDLLDemoView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CMyDLLDemoView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CMyDLLDemoView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CMyDLLDemoView diagnostics
#ifdef _DEBUG
void CMyDLLDemoView::AssertValid() const
{
CView::AssertValid();
}
void CMyDLLDemoView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMyDLLDemoDoc* CMyDLLDemoView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMyDLLDemoDoc)));
return (CMyDLLDemoDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMyDLLDemoView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -