ddraw02dlg.h

来自「《Visual C 6.0高级编程技术——DirectX篇》程序源代码」· C头文件 代码 · 共 71 行

H
71
字号
// DDraw02Dlg.h : header file
//

#if !defined(AFX_DDRAW02DLG_H__F2B6F5C9_A24B_11D3_B6EE_0000215A0000__INCLUDED_)
#define AFX_DDRAW02DLG_H__F2B6F5C9_A24B_11D3_B6EE_0000215A0000__INCLUDED_

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

// Inserted code begin
#include "ddraw.h"
// Inserted code end

/////////////////////////////////////////////////////////////////////////////
// CDDraw02Dlg dialog

class CDDraw02Dlg : public CDialog
{
// Construction
public:
	CDDraw02Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CDDraw02Dlg)
	enum { IDD = IDD_DDRAW02_DIALOG };
	CButton	m_ctlButtonSetModes;
	CButton	m_ctlButtonEnumerateModes;
	CListBox	m_ctlListBoxModes;
	CComboBox	m_ctlComboBoxDevice;
	int		m_nDevice;
	CString	m_strModes;
	//}}AFX_DATA
// Inserted code begin
  LPDIRECTDRAW  m_pDD;           // DirectDraw object.
  LPDIRECTDRAW2 m_pDD2;          // DirectDraw2 object.
// Inserted code end

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDDraw02Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Inserted code begin
public:
  void DestroyDirectDrawObjects();
// Inserted code end

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDDraw02Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnEnumerateModes();
	afx_msg void OnSetModes();
	afx_msg void OnDeleteItem(int nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DDRAW02DLG_H__F2B6F5C9_A24B_11D3_B6EE_0000215A0000__INCLUDED_)

⌨️ 快捷键说明

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