diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/titlewnd.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/titlewnd.h')
| -rw-r--r-- | hammer/titlewnd.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/hammer/titlewnd.h b/hammer/titlewnd.h new file mode 100644 index 0000000..c27d8ef --- /dev/null +++ b/hammer/titlewnd.h @@ -0,0 +1,53 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TITLEWND_H +#define TITLEWND_H +#pragma once + + +class CTitleWnd : public CWnd +{ + public: + + static CTitleWnd *CreateTitleWnd(CWnd *pwndParent, UINT uID); + + void SetTitle(LPCTSTR pszTitle); + + private: + + char m_szTitle[256]; + static CFont m_FontNormal; + static CFont m_FontActive; + + protected: + + CTitleWnd(void); + + void OnMouseButton(void); + + bool m_bMouseOver; + bool m_bMenuOpen; + + afx_msg void OnPaint(); + afx_msg void OnLButtonDown(UINT nFlags, CPoint point); + afx_msg void OnRButtonDown(UINT nFlags, CPoint point); + afx_msg void OnMouseMove(UINT nFlags, CPoint point); + afx_msg LRESULT OnMouseLeave(WPARAM wParam, LPARAM lParam); + + DECLARE_MESSAGE_MAP() +}; + + + +#endif // TITLEWND_H |