Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef SPLASH_H
  7. #define SPLASH_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class CSplashWnd : public CWnd
  12. {
  13. // Construction
  14. protected:
  15. CSplashWnd();
  16. // Attributes:
  17. public:
  18. CBitmap m_bitmap;
  19. // Operations
  20. public:
  21. static void EnableSplashScreen(bool bEnable = TRUE);
  22. static void ShowSplashScreen(CWnd *pParentWnd = NULL);
  23. static BOOL PreTranslateAppMessage(MSG* pMsg);
  24. static void HideSplashScreen();
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CSplashWnd)
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. ~CSplashWnd();
  32. virtual void PostNcDestroy();
  33. BOOL Create(CWnd* pParentWnd = NULL);
  34. // Generated message map functions
  35. protected:
  36. void DoHide();
  37. //{{AFX_MSG(CSplashWnd)
  38. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  39. afx_msg void OnPaint();
  40. afx_msg void OnTimer(UINT nIDEvent);
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. bool m_bHideRequested; // Set when the app signals the splash screen to hide.
  44. bool m_bMinTimerExpired; // Set when OnTimer is called -- ensures that we stay up long enough to be seen.
  45. };
  46. #endif // SPLASH_H