shapesview.h

来自「A Model-View-Controller Framework that i」· C头文件 代码 · 共 54 行

H
54
字号
#pragma once

struct ShapesViewImpl;

class ShapesView : public SbjCore::Mvc::ControlledView
{
	typedef SbjCore::Mvc::ControlledView t_Base; 
	
protected: // create from serialization only
	ShapesView();
	DECLARE_DYNCREATE(ShapesView)

// Attributes
public:
	ShapesDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	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);

// Implementation
public:
	virtual ~ShapesView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_MESSAGE_MAP()
private:
	struct ShapesViewImpl* const m_pImpl;
};

#ifndef _DEBUG  // debug version in ShapesView.cpp
inline ShapesDoc* ShapesView::GetDocument() const
   { return reinterpret_cast<ShapesDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?