wavebutton.h

来自「声音处理程序,通过FFT可以看声音的频谱.」· C头文件 代码 · 共 74 行

H
74
字号
#if !defined(AFX_WAVEBUTTON_H__8708E572_82CE_11D7_AB1A_00E04C3D26B7__INCLUDED_)
#define AFX_WAVEBUTTON_H__8708E572_82CE_11D7_AB1A_00E04C3D26B7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WaveButton.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CWaveButton window

class CWaveButton : public CButton
{
// Construction
public:
	CWaveButton();
// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWaveButton)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetCalcSize(SIZE size);
	void CorrectPoint(POINT& point);
	void ReplacePoint(int nIndex,POINT point);
	SIZE GetClientSize();
	POINT m_ptDragPoint;
	POINT m_ptTipPoint;
	int m_nDragPointIndex;
	void GetNearPointIndex(POINT point,int& nIndex1,int& nIndex2);
	void InsertPoint(POINT point,int nIndex=-1);
	void RemovePoint(int nIndex,int nCount=1);
	void RemoveAll();
	int m_nPointCount;
	int m_nPointArraySize;
	int m_nXGrid;
	int m_nYGrid;
	POINT* m_pPoint;
	SIZE m_CalcSize;
	SIZE m_ClientSize;
	CToolTipCtrl m_ToolTip;
	virtual ~CWaveButton();

	// Generated message map functions
protected:
	//{{AFX_MSG(CWaveButton)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WAVEBUTTON_H__8708E572_82CE_11D7_AB1A_00E04C3D26B7__INCLUDED_)

⌨️ 快捷键说明

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