www.pudn.com > ReadDxf.rar > ReadDxfView.h


// ReadDxfView.h : interface of the CReadDxfView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_READDXFVIEW_H__881C5673_737C_4274_B1F3_6822FC387695__INCLUDED_) 
#define AFX_READDXFVIEW_H__881C5673_737C_4274_B1F3_6822FC387695__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CReadDxfView : public CView 
{ 
protected: // create from serialization only 
	CReadDxfView(); 
	DECLARE_DYNCREATE(CReadDxfView) 
 
// Attributes 
public: 
	CReadDxfDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CReadDxfView) 
	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 ~CReadDxfView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
private: 
	int Scale; 
	void DrawCoord(); 
	void SetColor(COLORREF clr); 
	void RenderScene(); 
	void GLResize(int cx,int cy); 
	void GLRelease(); 
	void GLSetupRC(); 
	void GLInit(); 
	HGLRC		m_hRC;		//rendering context 
	HDC			m_hDC;		//device context 
	CPoint MouseDownPoint; 
	double X_Angle; 
	double Y_Angle; 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CReadDxfView) 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnZoomin(); 
	afx_msg void OnZoomout(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in ReadDxfView.cpp 
inline CReadDxfDoc* CReadDxfView::GetDocument() 
   { return (CReadDxfDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_READDXFVIEW_H__881C5673_737C_4274_B1F3_6822FC387695__INCLUDED_)