📄 lineview.h
字号:
// LineView.h : interface of the CLineView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_LINEVIEW_H__4E07F7F8_3EB3_4C22_A2BB_6864E2D5E4EB__INCLUDED_)
#define AFX_LINEVIEW_H__4E07F7F8_3EB3_4C22_A2BB_6864E2D5E4EB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CLineView : public CScrollView
{
protected: // create from serialization only
CLineView();
DECLARE_DYNCREATE(CLineView)
// Attributes
public:
// CLineDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLineView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL OnScrollBy(CSize sizeScroll, BOOL bDoScroll = TRUE);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CLineView();
/*
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
*/
protected:
typedef struct SaveData_Struct
{
int run;
int minute;
int hour;
float m;//分钟
float t;//累计
int total;//分钟字节数
int commtotal;
};
struct err_struct
{
int run[1450];
int total[1450];
int commtotal[1450];
float ErrCodeRate_t[1450];//累计分钟误码率
float MaxVal;//a/b中的最大值
int MaxTotal;//total中的最大值
};
// Generated message map functions
protected:
void DrawYLine(CDC *pDC, err_struct *ErrCodeRatestr, CRect rect,int AB);
void DrawCrusorData(CDC *pDC,err_struct *ErrCodeRatestr,CRect rect,int Cx,int Cy,int OffsetX,int AB);
void DrawXText(CDC *pDC,CRect rect);
void DrawDataLine(CDC* pDC,err_struct *ErrCodeRatestr,CRect rect,int ColroFlag);
void ZeroBuf();
int ReadLogFile(err_struct *ErrCodeRate,CString FileName);
BOOL IsInit;
int OldScrollPos;
int OffsetX;
UINT Cx;
UINT Cy;
int ReadFileDataFlag;
int OldSecond;
int ShowSel;//0:今天
int ShowA;//
CString OldDay;//旧文件名称
err_struct ErrCodeRate_str[2];
// SaveData_Struct SaveDataStruct ;
CCeToolsApp *app;
//{{AFX_MSG(CLineView)
afx_msg void OnErrRateColA();
afx_msg void OnErrRateColB();
afx_msg void OnDataColA();
afx_msg void OnDataColB();
afx_msg void OnNoDataCol();
afx_msg void OnFlagCol();
afx_msg void OnCursorCol();
afx_msg void OnShowA();
afx_msg void OnShowB();
afx_msg void OnCurDay();
afx_msg void OnOldDay();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/*
#ifndef _DEBUG // debug version in LineView.cpp
inline CLineDoc* CLineView::GetDocument()
{ return (CLineDoc*)m_pDocument; }
#endif
*/
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LINEVIEW_H__4E07F7F8_3EB3_4C22_A2BB_6864E2D5E4EB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -