1 /* $Id: winAbout.h,v 5.2 2002/06/15 21:35:22 dik Exp $
2  *
3  * XPilot, a multiplayer gravity war game.  Copyright (C) 1991-2001 by
4  *
5  *      Bj�rn Stabell        <bjoern@xpilot.org>
6  *      Ken Ronny Schouten   <ken@xpilot.org>
7  *      Bert Gijsbers        <bert@xpilot.org>
8  *      Dick Balaska         <dick@xpilot.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23  */
24 
25 /***************************************************************************\
26 *  winAbout.h : CAboutDlg dialog used for XPilotNT About					*
27 *																			*
28 *  This file contains the Windows about dialog and scrolling credits box.	*
29 *  $Id: winAbout.h,v 5.2 2002/06/15 21:35:22 dik Exp $						*
30 \***************************************************************************/
31 
32 /////////////////////////////////////////////////////////////////////////////
33 // CCredits window
34 
35 class CCredits : public CStatic
36 {
37 // Construction
38 public:
39 	CCredits();
40 
41 // Attributes
42 public:
43 	CFont	font;
44 	BOOL	haveFont;
45 	CRect	crRect;
46 	int		scrollofs;
47 	CBitmap	bm;
48 	BOOL	timer;
49 	BOOL	virgin;
50 
51 // Operations
52 public:
53 	void	BuildBitmap(CDC* dc);
54 
55 // Overrides
56 	// ClassWizard generated virtual function overrides
57 	//{{AFX_VIRTUAL(CCredits)
58 	public:
59 	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
60 	virtual BOOL DestroyWindow();
61 	//}}AFX_VIRTUAL
62 
63 // Implementation
64 public:
65 	virtual ~CCredits();
66 
67 	// Generated message map functions
68 protected:
69 	//{{AFX_MSG(CCredits)
70 	afx_msg void OnPaint();
71 	afx_msg void OnTimer(UINT nIDEvent);
72 	//}}AFX_MSG
73 
74 	DECLARE_MESSAGE_MAP()
75 };
76 
77 ////////////////////////////////////////////////////////////////////////////
78 
79 class CAboutDlg : public CDialog
80 {
81 public:
82 	CAboutDlg();
83 
84 // Dialog Data
85 	//{{AFX_DATA(CAboutDlg)
86 	enum { IDD = IDD_ABOUTBOX };
87 	CCredits	m_credits;
88 	//}}AFX_DATA
89 
90 	// ClassWizard generated virtual function overrides
91 	//{{AFX_VIRTUAL(CAboutDlg)
92 	protected:
93 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
94 	//}}AFX_VIRTUAL
95 
96 // Implementation
97 protected:
98 	//{{AFX_MSG(CAboutDlg)
99 	virtual BOOL OnInitDialog();
100 	//}}AFX_MSG
101 	DECLARE_MESSAGE_MAP()
102 };
103 
104