📄 curveview.h
字号:
#if !defined(AFX_CURVEVIEW_H__59A99610_9B26_49EB_940E_FFD35C280559__INCLUDED_)
#define AFX_CURVEVIEW_H__59A99610_9B26_49EB_940E_FFD35C280559__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CurveView.h : header file
//
#include "BaseView.h"
/////////////////////////////////////////////////////////////////////////////
// CCurveView view
typedef CList<DispStruct,DispStruct&> DrawBuffer;
class CCurveView : public CBaseView
{
protected:
CCurveView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CCurveView)
// Attributes
public:
void UpdateView(); //更新视图
void ClearView();
void SetFileManager(CQuakeFileManager* pFileManager); //设置数据源
void TimeProc();
void CalcDrawRect(CRect &DrawRect);
double GetUpLimit() const;
void SetUpLimit(double UpLimit);
private:
CQuakeFileManager* m_pFileManager;
void CreateMemPic(CDC* pDC); //重新生成内存图像
void DrawFormLineEx(CDC *pDC, CRect mainrect, CRect formrect);
void DrawFormLine(CDC* pDC);
void DrawFormText(CDC* pDC);
void DrawCurve(CDC* pDC,CPen &CurvePen, DrawBuffer *pBuffer);
void DrawTitleRect(CDC* pDC);
void DrawInformationRect(CDC* pDC);
void AutoHight(DrawBuffer *pBuffer);
COLORREF m_borCor; //表格外部矩形的线条颜色
COLORREF m_FormLineCor; //网格线颜色
COLORREF m_CurveLineCor; //网格线颜色
COLORREF m_TopCurveCor; //顶层曲线颜色
COLORREF m_FirstCurveCor; //第一层曲线颜色
CArray<CPoint,CPoint&>m_xPtList; //x方向单位点链表
CArray<CPoint,CPoint&>m_yPtList; //y方向单位点链表
int m_nXForm; //表格x方向的行数
int m_nYForm; //表格y方向的行数
double m_UpLimit; //绘图上限值
BOOL m_bAuto; //自动高度开关
CRect m_DrawRect; //曲线绘图区域
CRect m_FormRect; //表格区域
CRect m_TitleRect; //顶部标题区域
CRect m_InformationRect; //底部信息区域
DrawBuffer m_DrawBuffer1; //绘图缓冲区
DrawBuffer m_DrawBuffer2; //绘图缓冲区
int m_nBufferSize;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCurveView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CCurveView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CCurveView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CURVEVIEW_H__59A99610_9B26_49EB_940E_FFD35C280559__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -