📄 tankdlg.h
字号:
// tankDlg.h : header file
//
#if !defined(AFX_TANKDLG_H__588B85C8_AB07_4EB9_8810_5AF165BDEBC0__INCLUDED_)
#define AFX_TANKDLG_H__588B85C8_AB07_4EB9_8810_5AF165BDEBC0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTankDlg dialog
#include "game.h"
#include "BeginDlg.h"
#include "Picture.h"
class CTankDlg : public CDialog
{
// Construction
public:
void ShowPlayerInfo();
HANDLE hThread;
CGame game;
int m_nLevel;
bool m_bEscPress;
GameState m_OldState;
CPicture m_pictureTop,m_pictureLeft,m_pictureRight,m_pictureBloodFull,m_pictureBloodEmpty,m_pictureLMath,m_pictureBMath;
BOOL m_bPaint;
CTankDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTankDlg)
enum { IDD = IDD_TANK_DIALOG };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTankDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
BOOL m_bPause;
BOOL m_bChange; //表示windows发生位置改变
// CNormalBullet m_myBullet;
DWORD ID;
// Generated message map functions
//{{AFX_MSG(CTankDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
virtual void OnOK();
afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
afx_msg void OnMove(int x, int y);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnClose();
afx_msg void OnDestroy();
virtual void OnCancel();
//}}AFX_MSG
afx_msg void Exit();
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TANKDLG_H__588B85C8_AB07_4EB9_8810_5AF165BDEBC0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -