📄 adwaveview.h
字号:
#if !defined(AFX_ADWAVEVIEW_H__D485DF11_85AB_11D1_B878_A68EB300DD63__INCLUDED_)
#define AFX_ADWaveVIEW_H__D485DF11_85AB_11D1_B878_A68EB300DD63__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ADWaveView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CADWaveView view
class CADWaveView : public CScrollView
{
protected:
CADWaveView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CADWaveView)
public:
int m_ScaleH_Width;
int m_ScaleV_Width;
void DrawRulerTwoChannel(CDC *pDC, int Width,int Channel=3);//2~3个通道使用
void DrawRulerThreeChannel(CDC *pDC, int Width,int Channel=4);//四个通道以上使用
void DrawRulerH(CDC *pDC, int Width);
void DrawRulerV(CDC *pDC, int Width);
void DrawRulerHEx();
void DrawRulerVEX();
// Attributes
public:
BOOL UpdateFrame(CDC* pDC);
//void ADWave(CDC *pDC);
CRect m_rectFill;
CPen *OldPen;
CPen Pen;
int i, j;
int x;
CPoint PointXY[5];
float middle1;
int center;
int PerY;
long Offset; // 记录在8192点中当前偏移位置
CProgressCtrl* pProgress;
int CurrentProgress;
CPoint m_oldPoint;
int CurrentX, CurrentY; // 用于控制当前光标
CPoint CurrentPoint;
CPen pen,pen2,*oldPen;
// Operations
public:
BOOL m_Draw;
void AnalyzeAccurate();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CADWaveView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
protected:
CString m_ClassName;
CSize sizeTotal;//设置波形显示视图的大小
virtual ~CADWaveView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CADWaveView)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
afx_msg void OnNcPaint();
afx_msg void OnLButtonDown(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_ADWAVEVIEW_H__D485DF11_85AB_11D1_B878_A68EB300DD63__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -