Splash.h
上传用户:cding2008
上传日期:2007-01-03
资源大小:1812k
文件大小:2k
- /////////////////////////////////////////////////////////////////////////////
- // CG: This file was added by the Splash Screen component.
- //
- // ModelMagic 3D and 'glOOP' (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1999
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- /////////////////////////////////////////////////////////////////////////////
- #ifndef _SPLASH_SCRN_
- #define _SPLASH_SCRN_
- // Splash.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // Splash Screen class
- class CSplashWnd : public CWnd
- {
- // Construction
- protected:
- CSplashWnd();
- // Attributes:
- public:
- CClientDC* m_pDC;
- CBitmap m_bitmap;
- // Operations
- public:
- static void EnableSplashScreen(BOOL bEnable = TRUE);
- static void ShowSplashScreen(CWnd* pParentWnd = NULL);
- static BOOL PreTranslateAppMessage(MSG* pMsg);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSplashWnd)
- protected:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- ~CSplashWnd();
- virtual void PostNcDestroy();
- protected:
- BOOL Create(CWnd* pParentWnd = NULL);
- void HideSplashScreen();
- static BOOL c_bShowSplashWnd;
- static CSplashWnd* c_pSplashWnd;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CSplashWnd)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnPaint();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
- afx_msg BOOL OnQueryNewPalette();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #endif