www.pudn.com > resize.rar > resizeView.h


// resizeView.h : interface of the CResizeView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_RESIZEVIEW_H__8361A4B4_F3BD_4412_AFEE_0C2190D72883__INCLUDED_) 
#define AFX_RESIZEVIEW_H__8361A4B4_F3BD_4412_AFEE_0C2190D72883__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CResizeView : public CView 
{ 
protected: // create from serialization only 
	CResizeView(); 
	DECLARE_DYNCREATE(CResizeView) 
 
// Attributes 
public: 
	CResizeDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CResizeView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CResizeView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CResizeView) 
	afx_msg void OnLoad(); 
	afx_msg void OnResize(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	void FreeMemory(); 
	BITMAPFILEHEADER * lpbfh; 
	BITMAPINFO * lpbih; 
	BYTE * lpbit; 
	BOOL bload; 
	int nWidth ; 
	int nHeight ; 
}; 
 
#ifndef _DEBUG  // debug version in resizeView.cpp 
inline CResizeDoc* CResizeView::GetDocument() 
   { return (CResizeDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_RESIZEVIEW_H__8361A4B4_F3BD_4412_AFEE_0C2190D72883__INCLUDED_)