⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displaymodeview.h

📁 《Visual C++数字图像与图形处理》一书中编译通过的图像显示程序
💻 H
字号:
// DisplayModeView.h : interface of the CDisplayModeView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DISPLAYMODEVIEW_H__B3F6344D_0D62_11D4_9D97_0080AD8441D2__INCLUDED_)
#define AFX_DISPLAYMODEVIEW_H__B3F6344D_0D62_11D4_9D97_0080AD8441D2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CDisplayModeView : public CView
{
protected: // create from serialization only
	CDisplayModeView();
	DECLARE_DYNCREATE(CDisplayModeView)

// Attributes
public:
	CDisplayModeDoc* GetDocument();

// Operations
public:
	CBitmap m_bitmap;
	int m_nWidth;
	int m_nHeight;

public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDisplayModeView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDisplayModeView)
	afx_msg void OnFileSave();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnFileSaveAs();
	LRESULT OnDisplayChange(WPARAM, LPARAM);    
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DisplayModeView.cpp
inline CDisplayModeDoc* CDisplayModeView::GetDocument()
   { return (CDisplayModeDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DISPLAYMODEVIEW_H__B3F6344D_0D62_11D4_9D97_0080AD8441D2__INCLUDED_)

⌨️ 快捷键说明

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