HitCheckDemoDlg.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:2k
- // HitCheckDemoDlg.h : header file
- //
- #if !defined(AFX_HITCHECKDEMODLG_H__B019FFE7_E85E_4D9F_8DF8_DDBE01F76F67__INCLUDED_)
- #define AFX_HITCHECKDEMODLG_H__B019FFE7_E85E_4D9F_8DF8_DDBE01F76F67__INCLUDED_
- #include "cSurface.h" // Added by ClassView
- #include "cHitChecker.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CHitCheckDemoDlg dialog
- class CHitCheckDemoDlg : public CDialog
- {
- // Construction
- public:
- void InitDirectX();
- CHitCheckDemoDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CHitCheckDemoDlg)
- enum { IDD = IDD_HITCHECKDEMO_DIALOG };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CHitCheckDemoDlg)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- public:
- cSurface m_surfShipHitted;
- cHitChecker m_hcAsteroid;
- CPoint m_pAsteroid3;
- CPoint m_pAsteroid2;
- CPoint m_pAsteroid1;
- cHitChecker m_hcShip;
- int m_iIncrement;
- CPoint pShipPos;
- cSurface m_surfShip;
- cSurface m_surfAsteroid;
- void DrawAsteroids();
- void DrawShip();
- BOOL m_bStop;
- CWinThread* pUpdateFrame;
- LPDIRECTDRAW7 m_pDD;
-
- LPDIRECTDRAWSURFACE7 m_pFrontBuffer;
- LPDIRECTDRAWSURFACE7 m_pBackBuffer;
- // Implementation
- protected:
- // DirectX variables
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CHitCheckDemoDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnClose();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_HITCHECKDEMODLG_H__B019FFE7_E85E_4D9F_8DF8_DDBE01F76F67__INCLUDED_)