📄 bmpdlgview.cpp
字号:
// BmpDlgView.cpp : implementation of the CBmpDlgView class
//
#include "stdafx.h"
#include "BmpDlg.h"
#include "BmpDlgDoc.h"
#include "BmpDlgView.h"
#include "BmpDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBmpDlgView
IMPLEMENT_DYNCREATE(CBmpDlgView, CView)
BEGIN_MESSAGE_MAP(CBmpDlgView, CView)
//{{AFX_MSG_MAP(CBmpDlgView)
ON_COMMAND(ID_VIEW_TEST, OnViewTest)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBmpDlgView construction/destruction
CBmpDlgView::CBmpDlgView()
{
// TODO: add construction code here
}
CBmpDlgView::~CBmpDlgView()
{
}
BOOL CBmpDlgView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CBmpDlgView drawing
void CBmpDlgView::OnDraw(CDC* pDC)
{
CBmpDlgDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CBmpDlgView diagnostics
#ifdef _DEBUG
void CBmpDlgView::AssertValid() const
{
CView::AssertValid();
}
void CBmpDlgView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CBmpDlgDoc* CBmpDlgView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CBmpDlgDoc)));
return (CBmpDlgDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBmpDlgView message handlers
void CBmpDlgView::OnViewTest()
{
CBmpDialog dlg(TRUE);
dlg.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -