ex23avw.h

来自「VC++技术内幕(第四版)的实例」· C头文件 代码 · 共 47 行

H
47
字号
// ex23avw.h : interface of the CEx23aView class
//
/////////////////////////////////////////////////////////////////////////////

class CEx23aView : public CScrollView
{
public:
	CDC* m_pDisplayMemDC;
	HBITMAP m_hOldDisplayBitmap;
	CSize m_bmSize; // bitmap size
	CSize m_totalSize;  // document size
	BOOL m_bShrinkToFit;
protected: // create from serialization only
	CEx23aView();
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	DECLARE_DYNCREATE(CEx23aView)
public:
	CEx23aDoc* GetDocument();
public:
	virtual ~CEx23aView();
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
    virtual void OnInitialUpdate();
	// Printing support
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);

// Generated message map functions
protected:
	//{{AFX_MSG(CEx23aView)
	afx_msg void OnEditCopy();
	afx_msg void OnEditPaste();
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnEditPasteFrom();
	afx_msg void OnEditCopyTo();
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
	afx_msg void OnEditCut();
	afx_msg void OnViewShrink();
	afx_msg void OnUpdateViewShrink(CCmdUI* pCmdUI);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

inline CEx23aDoc* CEx23aView::GetDocument()
   { return (CEx23aDoc*) m_pDocument; }
 

⌨️ 快捷键说明

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