📄 blitdemoview.h
字号:
// BlitDemoView.h : interface of the CBlitDemoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_BLITDEMOVIEW_H__0F91A74C_0F27_11D1_813A_0020AF337325__INCLUDED_)
#define AFX_BLITDEMOVIEW_H__0F91A74C_0F27_11D1_813A_0020AF337325__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
enum{ OPERATION_BUBBLES, OPERATION_TROLLEY,
OPERATION_XORFLY, OPERATION_MASKFLY };
class CBlitDemoView : public CView
{
protected: // create from serialization only
CBlitDemoView();
DECLARE_DYNCREATE(CBlitDemoView)
// Attributes
public:
CBlitDemoDoc* GetDocument();
int m_nOperation;
CBitmap m_Fly[4];
CBitmap m_FlyMask[4];
int m_nCurrentFly;
int m_nFlyX, m_nFlyY;
CBitmap m_Bubble[3];
int m_nCurrentBubble;
CBitmap m_Trolley[4];
int m_nCurrentTrolley;
void DrawBitmaps( CDC * );
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBlitDemoView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBlitDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CBlitDemoView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnOperationsMaskfly();
afx_msg void OnOperationsShowbubbles();
afx_msg void OnOperationsShowtrolley();
afx_msg void OnOperationsXorfly();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in BlitDemoView.cpp
inline CBlitDemoDoc* CBlitDemoView::GetDocument()
{ return (CBlitDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BLITDEMOVIEW_H__0F91A74C_0F27_11D1_813A_0020AF337325__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -