histogramctrl.h

来自「在本例子中」· C头文件 代码 · 共 56 行

H
56
字号
// 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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?