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