RaceDlg.h
资源名称:10-Race.rar [点击查看]
上传用户:bkierde
上传日期:2022-06-07
资源大小:1840k
文件大小:2k
源码类别:
其他游戏
开发平台:
Visual C++
- // RaceDlg.h : header file
- //
- #if !defined(AFX_RACEDLG_H__F4A6AA31_BAB5_4BCC_AFE8_CAF0242B0C1A__INCLUDED_)
- #define AFX_RACEDLG_H__F4A6AA31_BAB5_4BCC_AFE8_CAF0242B0C1A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CRaceDlg dialog
- #include "CRunner.h"
- class CRaceDlg : public CDialog
- {
- // Construction
- public:
- CRaceDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CRaceDlg)
- enum { IDD = IDD_RACE_DIALOG };
- CProgressCtrl m_p6;
- CProgressCtrl m_p5;
- CProgressCtrl m_p4;
- CProgressCtrl m_p3;
- CProgressCtrl m_p2;
- CProgressCtrl m_p1;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CRaceDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnCancel();
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CRaceDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- //开始比赛(包含预备和开始2个过程)
- afx_msg void OnStart();
- //比赛结束
- afx_msg void OnExitAll();
- //响应运动员报告位置的消息
- afx_msg LRESULT OnStep(WPARAM,LPARAM);
- //响应运动员到达终点的消息
- afx_msg LRESULT OnExit(WPARAM,LPARAM);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- //6名运动员
- CRunner m_runners[6];
- //辅组变量
- CProgressCtrl* m_pctrls[6];
- StThreadVar m_stVar;
- //起跑信号
- HANDLE m_hTag;
- //比赛结束信号
- HANDLE m_hExit;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_RACEDLG_H__F4A6AA31_BAB5_4BCC_AFE8_CAF0242B0C1A__INCLUDED_)