📄 curveview.h
字号:
// CurveView.h : CCurveView 类的接口
//
#pragma once
#include "afxwin.h"
class CCurveView : public CView
{
protected: // 仅从序列化创建
CCurveView();
DECLARE_DYNCREATE(CCurveView)
// 属性
public:
/**
*
**/
bool m_bCanSize;
/**
* x轴滚动条
**/
CScrollBar m_xScrollBar;
/**
* y轴滚动条
**/
CScrollBar m_yScrollBar;
/**
*
**/
bool m_bFlag;
public:
CEachItemDoc* GetDocument() const;
// 操作
public:
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// 实现
public:
virtual ~CCurveView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
public:
virtual void OnInitialUpdate();
protected:
virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/);
public:
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
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 LRESULT OnReceive(WPARAM wParam, LPARAM lParam);
};
#ifndef _DEBUG // CurveView.cpp 的调试版本
inline CEachItemDoc* CCurveView::GetDocument() const
{ return reinterpret_cast<CEachItemDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -