www.pudn.com > EnergyMap.rar > EnergyMapView.h


// EnergyMapView.h : interface of the CEnergyMapView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_ENERGYMAPVIEW_H__89ED13DF_8D69_40E2_9045_606FFD0106A8__INCLUDED_) 
#define AFX_ENERGYMAPVIEW_H__89ED13DF_8D69_40E2_9045_606FFD0106A8__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "DrawMap.h" 
 
class CEnergyMapView : public CScrollView 
{ 
protected: // create from serialization only 
	CEnergyMapView(); 
	DECLARE_DYNCREATE(CEnergyMapView) 
 
// Attributes 
public: 
	CEnergyMapDoc* GetDocument(); 
	char fileName[100]; 
	CDrawMap DrawMap; 
	bool OpenFileResult; 
	CBitmap m_Bitmap; 
	bool DrawResult; 
	CSize sizeTotal; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CEnergyMapView) 
	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); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CEnergyMapView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
	CPalette m_Palette; 
	LPLOGPALETTE m_pLP; 
	void FillPalette(); 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CEnergyMapView) 
	afx_msg void OnDrawenergymap(); 
	afx_msg void OnFileOpen(); 
	afx_msg LRESULT OnDoRealize(WPARAM wParam,LPARAM lParam); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in EnergyMapView.cpp 
inline CEnergyMapDoc* CEnergyMapView::GetDocument() 
   { return (CEnergyMapDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ENERGYMAPVIEW_H__89ED13DF_8D69_40E2_9045_606FFD0106A8__INCLUDED_)