msgBox.h
资源名称:pong.rar [点击查看]
上传用户:szsg028
上传日期:2022-08-01
资源大小:12k
文件大小:1k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- #ifndef MSGBOX_H
- #define MSGBOX_H
- #include "entity2D.h"
- #include "court.h"
- #include <stdio.h>
- #include <string>
- class msgBox : public entity2D
- {
- public:
- msgBox( court* cancha, std::string text, std::string prompt );
- msgBox( const msgBox& rhs );
- msgBox();
- ~msgBox();
- void draw(HDC hDC);
- void setCancha(court* cancha);
- msgBox& operator=(const msgBox& rhs);
- private:
- court* m_Cancha;
- std::string m_sText;
- std::string m_sPrompt;
- HFONT m_fontText;
- HFONT m_fontPrompt;
- HBRUSH m_brushFondoMsg;
- };
- #endif