📄 testmfcview.h
字号:
// TestMfcView.h : interface of the CTestMfcView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TESTMFCVIEW_H__2E304C92_A216_4CD6_87F3_2F733760DA34__INCLUDED_)
#define AFX_TESTMFCVIEW_H__2E304C92_A216_4CD6_87F3_2F733760DA34__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Manager.h"
#include "TestMfcDoc.h"
#include "TestMfc.h"
class CTestMfcView : public CView
{
protected: // create from serialization only
CTestMfcView();
DECLARE_DYNCREATE(CTestMfcView)
// Attributes
public:
CTestMfcDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestMfcView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTestMfcView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTestMfcView)
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnReplay();
afx_msg void OnNew();
afx_msg void OnChoose();
afx_msg void OnNext();
afx_msg void OnFront();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
CDC cdc;
CBitmap bmp;
Manager manager;
public:
void GameStart(); //第一局
void GameStart(int index);//第几局
void NextGame(); //下一局
void DrawAll(CDC *pDC); //绘制所有
/*
void DrawBox(int x,int y,CDC *pDC);
void DrawMan(int x,int y,CDC *pDC);
void DrawWall(int x,int y,CDC *pDC);
void DrawTarget(int x,int y,CDC *pDC);
void DrawFin(int x,int y,CDC *pDC);
void DrawBg(int x,int y,CDC *pDC);
void DrawInnerbg(int x,int y,CDC *pDC);
void DrawSubject(CDC*pDC);*/
};
#ifndef _DEBUG // debug version in TestMfcView.cpp
inline CTestMfcDoc* CTestMfcView::GetDocument()
{ return (CTestMfcDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTMFCVIEW_H__2E304C92_A216_4CD6_87F3_2F733760DA34__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -