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