hexviewerview.h

来自「Visual_C++[1].NET_Bible1 Visual_C++宝典书中」· C头文件 代码 · 共 58 行

H
58
字号
// HexViewerView.h : interface of the CHexViewerView class
//


#pragma once


class CHexViewerView : public CScrollView
{
protected: // create from serialization only
	CHexViewerView();
	DECLARE_DYNCREATE(CHexViewerView)

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

// Operations
protected:
	CFont*	m_pFont;
	LOGFONT	m_logfont;
	int		m_nPointSize;
	int		m_nPageHeight;
	int		m_nPageWidth;

int MeasureFontHeight(CFont* pFont, CDC* pDC);

// Overrides
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

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

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
};

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

⌨️ 快捷键说明

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