summaryrefslogtreecommitdiff
path: root/hammer/splash.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/splash.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/splash.h')
-rw-r--r--hammer/splash.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/hammer/splash.h b/hammer/splash.h
new file mode 100644
index 0000000..ef80421
--- /dev/null
+++ b/hammer/splash.h
@@ -0,0 +1,61 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef SPLASH_H
+#define SPLASH_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+class CSplashWnd : public CWnd
+{
+// Construction
+protected:
+ CSplashWnd();
+
+// Attributes:
+public:
+ CBitmap m_bitmap;
+
+// Operations
+public:
+ static void EnableSplashScreen(bool bEnable = TRUE);
+ static void ShowSplashScreen(CWnd *pParentWnd = NULL);
+ static BOOL PreTranslateAppMessage(MSG* pMsg);
+ static void HideSplashScreen();
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CSplashWnd)
+ //}}AFX_VIRTUAL
+
+// Implementation
+public:
+ ~CSplashWnd();
+ virtual void PostNcDestroy();
+
+ BOOL Create(CWnd* pParentWnd = NULL);
+
+// Generated message map functions
+protected:
+
+ void DoHide();
+
+ //{{AFX_MSG(CSplashWnd)
+ afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
+ afx_msg void OnPaint();
+ afx_msg void OnTimer(UINT nIDEvent);
+ //}}AFX_MSG
+
+ DECLARE_MESSAGE_MAP()
+
+ bool m_bHideRequested; // Set when the app signals the splash screen to hide.
+ bool m_bMinTimerExpired; // Set when OnTimer is called -- ensures that we stay up long enough to be seen.
+};
+
+
+#endif // SPLASH_H