summaryrefslogtreecommitdiff
path: root/hammer/titlewnd.h
blob: c27d8efccad67d98fffd4fcadf0d516a2cb40f3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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