⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soundplayerview.h

📁 一个简单的类似钢琴的游戏
💻 H
字号:
// SoundPlayerView.h : interface of the CSoundPlayerView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SOUNDPLAYERVIEW_H__CAD7B7C5_B423_422C_92AA_35FB42012F99__INCLUDED_)
#define AFX_SOUNDPLAYERVIEW_H__CAD7B7C5_B423_422C_92AA_35FB42012F99__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define	LDO	220
#define	LRI	247
#define	LMI	277
#define	LFA	294
#define	LSO	330
#define	LLA	370
#define	LTI	416
#define	DO	440
#define	RI	494
#define	MI	554
#define	FA	587
#define	SO	659
#define	LA	740
#define	TI	831
#define	HDO	880
#define	HRI	988
#define	HMI	1108
#define	HFA	1174
#define	HSO	1318
#define	HLA	1480
#define	HTI	1662
class CSoundPlayerView : public CView
{
protected: // create from serialization only
	CSoundPlayerView();
	DECLARE_DYNCREATE(CSoundPlayerView)

// Attributes
public:
	CSoundPlayerDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSoundPlayerView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSoundPlayerView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSoundPlayerView)
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SoundPlayerView.cpp
inline CSoundPlayerDoc* CSoundPlayerView::GetDocument()
   { return (CSoundPlayerDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SOUNDPLAYERVIEW_H__CAD7B7C5_B423_422C_92AA_35FB42012F99__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -