www.pudn.com > VCBOOKSOURCES.zip > BITDEMOVIEW.H, change:1998-02-18,size:1858b


// BitDemoView.h : interface of the CBitDemoView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_BITDEMOVIEW_H__0955F7F5_A77B_11D1_80FC_00C0F6A83B7F__INCLUDED_) 
#define AFX_BITDEMOVIEW_H__0955F7F5_A77B_11D1_80FC_00C0F6A83B7F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CBitDemoView : public CView 
{ 
protected: 
   CBitmap m_Bitmap;  
   int m_BitmapHeight; 
   int m_BitmapWidth; 
 
protected: // create from serialization only 
   CBitDemoView(); 
   DECLARE_DYNCREATE(CBitDemoView) 
 
// Attributes 
public: 
   CBitDemoDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
   // ClassWizard generated virtual function overrides 
   //{{AFX_VIRTUAL(CBitDemoView) 
   public: 
   virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
   virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
   protected: 
   //}}AFX_VIRTUAL 
 
// Implementation 
public: 
   virtual ~CBitDemoView(); 
#ifdef _DEBUG 
   virtual void AssertValid() const; 
   virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
   //{{AFX_MSG(CBitDemoView) 
      // NOTE - the ClassWizard will add and remove member functions here. 
      //    DO NOT EDIT what you see in these blocks of generated code ! 
   //}}AFX_MSG 
   DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in BitDemoView.cpp 
inline CBitDemoDoc* CBitDemoView::GetDocument() 
   { return (CBitDemoDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BITDEMOVIEW_H__0955F7F5_A77B_11D1_80FC_00C0F6A83B7F__INCLUDED_)