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