www.pudn.com > CarCrash.rar > CarCrashView.h


// CarCrashView.h : interface of the CCarCrashView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CARCRASHVIEW_H__1A70D3C7_99E9_47F9_8493_6FD0485CDFBC__INCLUDED_) 
#define AFX_CARCRASHVIEW_H__1A70D3C7_99E9_47F9_8493_6FD0485CDFBC__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#pragma  warning(disable:4786) 
#include  
using namespace std; 
 
#include "CarThread.h" 
 
 
class CCarCrashView : public CView 
{ 
protected: // create from serialization only 
	CCarCrashView(); 
	DECLARE_DYNCREATE(CCarCrashView) 
	CClientDC *m_pDC; 
	void AddACar(CRect r); 
	void KillThreads(); 
// Attributes 
public: 
	CCarCrashDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CCarCrashView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CCarCrashView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CCarCrashView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnDestroy(); 
	afx_msg void OnFileRemoveallcars(); 
	afx_msg void OnFileAddcars(); 
	//}}AFX_MSG 
	afx_msg LRESULT OnKillThisThread(WPARAM, LPARAM);; 
//	afx_msg LRESULT OnKillOtherThread(WPARAM, LPARAM);; 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in CarCrashView.cpp 
inline CCarCrashDoc* CCarCrashView::GetDocument() 
   { return (CCarCrashDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CARCRASHVIEW_H__1A70D3C7_99E9_47F9_8493_6FD0485CDFBC__INCLUDED_)