Splash.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // CG: This file was added by the Splash Screen component.
  2. #ifndef _SPLASH_SCRN_
  3. #define _SPLASH_SCRN_
  4. // Splash.h : header file
  5. //
  6. /////////////////////////////////////////////////////////////////////////////
  7. // Splash Screen class
  8. class CSplashWnd : public CWnd
  9. {
  10. // Construction
  11. protected:
  12. CSplashWnd();
  13. // Attributes:
  14. public:
  15. CBitmap m_bitmap;
  16. // Operations
  17. public:
  18. static void EnableSplashScreen(BOOL bEnable = TRUE);
  19. static void ShowSplashScreen(CWnd* pParentWnd = NULL);
  20. static BOOL PreTranslateAppMessage(MSG* pMsg);
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CSplashWnd)
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. public:
  27. ~CSplashWnd();
  28. virtual void PostNcDestroy();
  29. protected:
  30. BOOL Create(CWnd* pParentWnd = NULL);
  31. void HideSplashScreen();
  32. static BOOL c_bShowSplashWnd;
  33. static CSplashWnd* c_pSplashWnd;
  34. // Generated message map functions
  35. protected:
  36. //{{AFX_MSG(CSplashWnd)
  37. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  38. afx_msg void OnPaint();
  39. afx_msg void OnTimer(UINT nIDEvent);
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. };
  43. #endif