📄 bouncedoc.h
字号:
#if !defined(AFX_BOUNCEDOC_H__216AAFF2_8D90_4E14_BCF7_623219CB2697__INCLUDED_)
#define AFX_BOUNCEDOC_H__216AAFF2_8D90_4E14_BCF7_623219CB2697__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BounceDoc.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CBounceDoc document
class CBounceDoc : public CDocument
{
protected:
CBounceDoc(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CBounceDoc)
// Attributes
public:
COLORREF m_clrBall;
BOOL m_bFastSpeed; // current speed
CPoint m_ptPixel; // pixel size
CSize m_sizeRadius; // radius of ball
CSize m_sizeMove; // move speed
CSize m_sizeTotal; // total size for ball bitmap
CPoint m_ptCenter; // current center for the ball
BOOL m_bBlack; //state of color buttons
BOOL m_bWhite;
BOOL m_bBlue;
BOOL m_bRed;
BOOL m_bGreen;
BOOL m_bCustom;
CBitmap m_bmBall;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBounceDoc)
public:
virtual void Serialize(CArchive& ar); // overridden for document i/o
protected:
virtual BOOL OnNewDocument();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBounceDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CBounceDoc)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BOUNCEDOC_H__216AAFF2_8D90_4E14_BCF7_623219CB2697__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -