1 /* $Id: Splash.h,v 5.0 2001/04/07 20:00:59 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 * Splash.h - The Splash Panel for XPilotNT * 27 * * 28 * This file is the standard splash component from MSDEV enhanced to allow * 29 * displaying progress messages in the lower left corner. * 30 * * 31 * $Id: Splash.h,v 5.0 2001/04/07 20:00:59 dik Exp $ * 32 \***************************************************************************/ 33 // CG: This file was added by the Splash Screen component. 34 35 #ifndef _SPLASH_SCRN_ 36 #define _SPLASH_SCRN_ 37 38 // Splash.h : header file 39 // 40 41 // Splash uses Predident Regular 12 for the version font. 42 ///////////////////////////////////////////////////////////////////////////// 43 // Splash Screen class 44 45 class CSplashWnd : public CWnd 46 { 47 // Construction 48 protected: 49 CSplashWnd(); 50 51 // Attributes: 52 public: 53 CBitmap m_bitmap; 54 55 // Operations 56 public: 57 static void EnableSplashScreen(BOOL bEnable = TRUE); 58 static void ShowSplashScreen(CWnd* pParentWnd = NULL); 59 static BOOL PreTranslateAppMessage(MSG* pMsg); 60 61 static void ShowMessage(const CString& msg); 62 63 // Overrides 64 // ClassWizard generated virtual function overrides 65 //{{AFX_VIRTUAL(CSplashWnd) 66 //}}AFX_VIRTUAL 67 68 // Implementation 69 public: 70 ~CSplashWnd(); 71 virtual void PostNcDestroy(); 72 73 74 protected: 75 BOOL Create(CWnd* pParentWnd = NULL); 76 void HideSplashScreen(); 77 static BOOL c_bShowSplashWnd; 78 static CSplashWnd* c_pSplashWnd; 79 80 // Generated message map functions 81 protected: 82 //{{AFX_MSG(CSplashWnd) 83 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 84 afx_msg void OnPaint(); 85 afx_msg void OnTimer(UINT nIDEvent); 86 //}}AFX_MSG 87 DECLARE_MESSAGE_MAP() 88 }; 89 90 91 #endif 92