-
Notifications
You must be signed in to change notification settings - Fork 1
/
StatusBarEx.h
66 lines (51 loc) · 1.63 KB
/
StatusBarEx.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#if !defined(AFX_CEDTSTATUSBAR_H__14946526_5B6B_11D3_978B_00104B151BA8__INCLUDED_)
#define AFX_CEDTSTATUSBAR_H__14946526_5B6B_11D3_978B_00104B151BA8__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// CedtStatusBar.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCedtStatusBar window
class CStatusBarEx : public CStatusBar
{
// Construction
public:
CStatusBarEx();
// Attributes
protected:
CDC m_dcPane;
CBitmap m_bmpPane;
CFont m_fontPane1, m_fontPane2;
CString m_szPaneText;
COLORREF m_crPaneTextColors[256];
BOOL m_bPaneHighlight[256];
// Operations
public:
void BeginProgress(LPCTSTR lpszMessage);
void EndProgress();
void SetProgress(INT nPercent);
void SetPaneTextColor(INT nIndex, COLORREF crTextColor);
void SetPaneHighlight(INT nIndex, BOOL bHighlight);
protected:
void DrawPaneBorder(CDC * pDC, CRect rect);
void DrawPaneText(CDC * pDC, CRect rect, LPCTSTR lpszPaneText, COLORREF crTextColor);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStatusBarEx)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CStatusBarEx();
// Generated message map functions
protected:
//{{AFX_MSG(CStatusBarEx)
afx_msg void OnPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CEDTSTATUSBAR_H__14946526_5B6B_11D3_978B_00104B151BA8__INCLUDED_)