📄 bounceview.h
字号:
#if !defined(AFX_BOUNCEVIEW_H__FF537AB5_DF61_4D43_8822_6C2AD417CD2D__INCLUDED_)
#define AFX_BOUNCEVIEW_H__FF537AB5_DF61_4D43_8822_6C2AD417CD2D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BounceView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CBounceView view
#include "BounceDoc.h"
class CBounceView : public CView
{
protected:
CBounceView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CBounceView)
// Attributes
public:
// Operations
public:
CBounceDoc* GetDocument();
void MixColors();
void MakeNewBall();
void ChangeSpeed();
CPoint m_ptPixel;
BOOL m_bFastSpeed;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBounceView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CBounceView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CBounceView)
afx_msg void OnBlue();
afx_msg void OnUpdateBlue(CCmdUI* pCmdUI);
afx_msg void OnCustom();
afx_msg void OnGreen();
afx_msg void OnUpdateGreen(CCmdUI* pCmdUI);
afx_msg void OnRed();
afx_msg void OnUpdateRed(CCmdUI* pCmdUI);
afx_msg void OnWhite();
afx_msg void OnUpdateWhite(CCmdUI* pCmdUI);
afx_msg void OnSpeedFast();
afx_msg void OnSpeedSlow();
afx_msg void OnBlack();
afx_msg void OnUpdateBlack(CCmdUI* pCmdUI);
afx_msg void OnUpdateSpeedFast(CCmdUI* pCmdUI);
afx_msg void OnUpdateSpeedSlow(CCmdUI* pCmdUI);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnUpdateCustom(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in HelloView.cpp
inline CBounceDoc* CBounceView::GetDocument()
{ return (CBounceDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BOUNCEVIEW_H__FF537AB5_DF61_4D43_8822_6C2AD417CD2D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -