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.

53 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef TITLEWND_H
  14. #define TITLEWND_H
  15. #pragma once
  16. class CTitleWnd : public CWnd
  17. {
  18. public:
  19. static CTitleWnd *CreateTitleWnd(CWnd *pwndParent, UINT uID);
  20. void SetTitle(LPCTSTR pszTitle);
  21. private:
  22. char m_szTitle[256];
  23. static CFont m_FontNormal;
  24. static CFont m_FontActive;
  25. protected:
  26. CTitleWnd(void);
  27. void OnMouseButton(void);
  28. bool m_bMouseOver;
  29. bool m_bMenuOpen;
  30. afx_msg void OnPaint();
  31. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  32. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  33. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  34. afx_msg LRESULT OnMouseLeave(WPARAM wParam, LPARAM lParam);
  35. DECLARE_MESSAGE_MAP()
  36. };
  37. #endif // TITLEWND_H