forked from wuxh123/myget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HistogramCtrl.h
55 lines (44 loc) · 1.14 KB
/
HistogramCtrl.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
// HistogramCtrl.h : header file
//
#ifndef __HISTOGRAMCTRL_H__
#define __HISTOGRAMCTRL_H__
/////////////////////////////////////////////////////////////////////////////
// CHistogramCtrl window
class CHistogramCtrl : public CWnd
{
// Construction
public:
CHistogramCtrl();
UINT m_nVertical;
// Attributes
public:
UINT SetPos(UINT nPos);
void SetRange(UINT nLower, UINT nUpper);
void InvalidateCtrl();
void DrawSpike();
// Operations
public:
void StepIt();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHistogramCtrl)
public:
virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHistogramCtrl();
// Generated message map functions
protected:
//{{AFX_MSG(CHistogramCtrl)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
UINT m_nLower; // lower bounds
UINT m_nUpper; // upper bounds
UINT m_nPos; // current position within bounds
CDC m_MemDC;
CBitmap m_Bitmap;
};
/////////////////////////////////////////////////////////////////////////////
#endif