directxframe.h

来自「VC+DirectX写的飞机小游戏」· C头文件 代码 · 共 49 行

H
49
字号
#if !defined(AFX_DirectXFRAME_H__FB577E7A_A821_11D5_BD53_0050BAE96245__INCLUDED_)
#define AFX_DirectXFRAME_H__FB577E7A_A821_11D5_BD53_0050BAE96245__INCLUDED_

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

class DirectXFrame : public CFrameWnd
{
	DECLARE_DYNCREATE(DirectXFrame)
public:
	DirectXFrame();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:
	void Render();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DirectXFrame)
	protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~DirectXFrame();

	// Generated message map functions
	//{{AFX_MSG(DirectXFrame)
	afx_msg void OnPaint();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_DirectXFRAME_H__FB577E7A_A821_11D5_BD53_0050BAE96245__INCLUDED_)

⌨️ 快捷键说明

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