📄 winmineview.h
字号:
// WinMineView.h : interface of the CWinMineView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_WINMINEVIEW_H__6013B4B1_AA48_490B_83D3_0A3FD54F49E1__INCLUDED_)
#define AFX_WINMINEVIEW_H__6013B4B1_AA48_490B_83D3_0A3FD54F49E1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CWinMineView : public CView
{
protected: // create from serialization only
CWinMineView();
DECLARE_DYNCREATE(CWinMineView)
CBitmap m_bmp;
bool m_bBegin,m_bEnd;
CDC *pDC;
CDC mdc;
int m_nX,m_nY; //记录要重画的坐标
bool m_bEasy,m_bNormal,m_bHard,m_bCustom;
bool m_bLBDown;
LONG width,heigth;
bool m_bMin;
// Attributes
public:
CWinMineDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWinMineView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CWinMineView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CWinMineView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnEasy();
afx_msg void OnNormal();
afx_msg void OnHard();
afx_msg void OnUpdateEasy(CCmdUI* pCmdUI);
afx_msg void OnUpdateHard(CCmdUI* pCmdUI);
afx_msg void OnUpdateNormal(CCmdUI* pCmdUI);
afx_msg void OnCustom();
afx_msg void OnUpdateCustom(CCmdUI* pCmdUI);
afx_msg void OnStart();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
afx_msg void OnMButtonDown(UINT nFlags,CPoint point);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in WinMineView.cpp
inline CWinMineDoc* CWinMineView::GetDocument()
{ return (CWinMineDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WINMINEVIEW_H__6013B4B1_AA48_490B_83D3_0A3FD54F49E1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -