-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRadarPanel.h
50 lines (39 loc) · 1.17 KB
/
RadarPanel.h
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
/*
* @file: AAType.h
* @brief: Window splitter used in AARFS
* @author: dongzhaoyu
* @date: 2008-4-10
*
* Copyright (c) 2008 CTEC Xi'an JiaoTong University
*/
#ifndef _RADARPANEL_H
#define _RADARpANEL_H
class RadarPanel : public CPaneContainerImpl<RadarPanel>
{
public:
DECLARE_WND_CLASS_EX(_T("My_PaneContainer"), 0, -1)
//BEGIN_MSG_MAP(RadarPanel)
// MESSAGE_HANDLER(WM_PAINT, OnPaint)
//END_MSG_MAP()
RadarPanel() : m_bColoredHeader(false)
{ }
// Operations
void EnableColoredHeader ( bool bEnable = true );
// Overrides
BOOL GetToolTipText(LPNMHDR lpnmh);
void DrawPaneTitle(CDCHandle dc);
HFONT GetTitleFont();
// NOTE: There is a bug in CPaneContainer that prevents this from being
// called after you switch the container to vertical mode. Change
// CalcSize() to pT->CalcSize() in CPaneContainer::SetPaneContainerExtendedStyle()
void CalcSize() { m_cxyHeader = 30; }
//LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
//{
// SendMessage(uMsg, wParam, lParam);
// return 0;
//}
protected:
bool m_bColoredHeader;
CFont m_titleFont;
};
#endif