📄 printview.h
字号:
#if !defined(AFX_PRINTVIEW_H__C67DD12C_6FB9_4CF0_AECC_CAE118F82495__INCLUDED_)
#define AFX_PRINTVIEW_H__C67DD12C_6FB9_4CF0_AECC_CAE118F82495__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrintView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPrintView view
//此类用于显示程序中的非文本信息,模型结构形态显示、等位面显示、电力线显示
class CPrintView : public CScrollView
{
public:
CPrintView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CPrintView)
// Attributes
public:
// Operations
public:
int m_tagView; //显示什么图形0-输入模型形态 1-结果电压等值图
double m_scale; //缩放倍数
CPoint m_xoy; //圆心坐标
int m_page; //每行的象素数
int m_line; //每页的象素数
void Init();
void DrawOutputGraph(CDC* pDC); //绘制输入数据的形态
void DrawInputGraph(CDC* pDC); //绘制输出结果的形态
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPrintView)
public:
virtual void OnFinalRelease();
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CPrintView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CPrintView)
afx_msg void OnViewZoomin();
afx_msg void OnViewZoomout();
afx_msg void OnViewGodown();
afx_msg void OnViewGoleft();
afx_msg void OnViewGoright();
afx_msg void OnViewGoup();
afx_msg void OnViewReset();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Generated OLE dispatch map functions
//{{AFX_DISPATCH(CPrintView)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_DISPATCH
DECLARE_DISPATCH_MAP()
DECLARE_INTERFACE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PRINTVIEW_H__C67DD12C_6FB9_4CF0_AECC_CAE118F82495__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -