1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 //===========================================================================
26 //#####DESCRIPTIONBEGIN####
33 // Description: Interface of the splash window class
40 //####DESCRIPTIONEND####
42 //===========================================================================
47 // Splash.h : header file
50 /////////////////////////////////////////////////////////////////////////////
51 // Splash Screen class
53 class CSplashWnd : public CWnd
58 DECLARE_DYNAMIC(CSplashWnd)
68 static void EnableSplashScreen(BOOL bEnable = TRUE);
69 static void ShowSplashScreen(CWnd* pParentWnd = NULL);
70 static BOOL PreTranslateAppMessage(MSG* pMsg);
71 void CreateDIBPalette (LPBITMAPINFO lpbmi, LPINT lpiNumColors);
74 // ClassWizard generated virtual function overrides
75 //{{AFX_VIRTUAL(CSplashWnd)
81 virtual void PostNcDestroy();
84 BOOL Create(CWnd* pParentWnd = NULL);
85 static BOOL c_bShowSplashWnd;
86 static CSplashWnd* c_pSplashWnd;
87 void HideSplashScreen();
88 HBITMAP LoadResourceBitmap(HINSTANCE hInstance, LPCTSTR lpString);
90 // Generated message map functions
92 //{{AFX_MSG(CSplashWnd)
93 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
94 afx_msg void OnPaint();
95 afx_msg void OnTimer(UINT nIDEvent);