-
Notifications
You must be signed in to change notification settings - Fork 127
/
CreditsThread.h
71 lines (57 loc) · 1.34 KB
/
CreditsThread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
#include "GDIThread.h"
class CCreditsThread : public CGDIThread
{
public:
DECLARE_DYNAMIC(CCreditsThread)
CCreditsThread(CWnd* pWnd, HDC hDC, CRect rectScreen);
// Attributes
public:
CRect m_rectScreen;
CRgn m_rgnScreen;
int m_nScrollPos;
// background bitmap
CDC m_dcBk;
CBitmap m_bmpBk;
CBitmap* m_pbmpOldBk;
// credits bitmap
CDC m_dcCredits;
CBitmap m_bmpCredits;
CBitmap* m_pbmpOldCredits;
// screen bitmap
CDC m_dcScreen;
CBitmap m_bmpScreen;
CBitmap* m_pbmpOldScreen;
// mask bitmap
CDC m_dcMask;
CBitmap m_bmpMask;
CBitmap* m_pbmpOldMask;
int m_nCreditsBmpWidth;
int m_nCreditsBmpHeight;
CArray<CString> m_arCredits;
CArray<COLORREF, COLORREF> m_arColors;
CArray<CFont*, CFont*> m_arFonts;
CArray<int, int> m_arFontHeights;
// Operations
public:
int CalcCreditsHeight();
void InitText();
void InitColors();
void InitFonts();
void CreateCredits();
virtual BOOL InitInstance();
virtual void SingleStep();
void PaintBk(CDC* pDC);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCreditsThread)
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CCreditsThread();
// Generated message map functions
//{{AFX_MSG(CCreditsThread)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};