📄 efingerview.cpp
字号:
// eFingerView.cpp : implementation of the CEFingerView class
//
#include "stdafx.h"
#include "eFinger.h"
#include "eFingerDoc.h"
#include "eFingerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEFingerView
IMPLEMENT_DYNCREATE(CEFingerView, CView)
BEGIN_MESSAGE_MAP(CEFingerView, CView)
//{{AFX_MSG_MAP(CEFingerView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CEFingerView construction/destruction
CEFingerView::CEFingerView()
{
// TODO: add construction code here
}
CEFingerView::~CEFingerView()
{
}
BOOL CEFingerView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CEFingerView drawing
void CEFingerView::OnDraw(CDC* pDC)
{
CEFingerDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CBitmap bitmap;
CDC dcMemory;
bitmap.LoadBitmap(IDB_BITMAP2);
dcMemory.CreateCompatibleDC(pDC);
dcMemory.SelectObject(&bitmap);
pDC->BitBlt(0,0,1600,1200,NULL,0,0,BLACKNESS);
pDC->BitBlt(300,200,600,400,&dcMemory,0,0,SRCCOPY);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CEFingerView printing
BOOL CEFingerView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CEFingerView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CEFingerView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CEFingerView diagnostics
#ifdef _DEBUG
void CEFingerView::AssertValid() const
{
CView::AssertValid();
}
void CEFingerView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CEFingerDoc* CEFingerView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEFingerDoc)));
return (CEFingerDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEFingerView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -