www.pudn.com > 3dsMFCRender.rar > 3dsView.h, change:1998-03-21,size:2667b


// 3dsView.h : interface of the C3dsView class 
// 
///////////////////////////////////////////////////////////////////////////// 
#include "toolGL.h" 
 
#if !defined(AFX_3DSVIEW_H__8D6510C2_87BB_11D1_B1B0_0020AF55E266__INCLUDED_) 
#define AFX_3DSVIEW_H__8D6510C2_87BB_11D1_B1B0_0020AF55E266__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
class C3dsView : public CView 
{ 
protected: // create from serialization only 
	C3dsView(); 
	DECLARE_DYNCREATE(C3dsView) 
 
// Attributes 
public: 
	C3dsDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(C3dsView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	BOOL OpenFile(LPCTSTR lpszPathName); 
	int glElapsedTimeRender(); 
	void SceneAnimate(); 
	virtual ~C3dsView(); 
	long currentframe; 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(C3dsView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnSceneAnimer(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnSceneBox(); 
	afx_msg void OnSceneDisplist(); 
	afx_msg void OnScenePlay(); 
	afx_msg void OnSceneReverse(); 
	afx_msg void OnSceneStop(); 
	afx_msg void OnSceneAdvance(); 
	afx_msg void OnSceneMovestart(); 
	afx_msg void OnSceneMoveend(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
// Members 
private: 
	CDC*	m_pDC; 
	CtoolGL m_GL; 
	BOOL	m_bAnim; 
	DWORD	m_previousElapsedTime; 
	DWORD	m_ElapsedTime; 
	int		m_AnimSpeed; 
	BOOL	mouserightdown;	//mouse 
	BOOL	mouseleftdown;	//mouse 
	CPoint	mouseprevpoint; //mouse 
	char	titlebuffer[200]; 
	char	titleold[200]; 
	char	oldtitle[200]; 
 
 
}; 
 
#ifndef _DEBUG  // debug version in 3dsView.cpp 
inline C3dsDoc* C3dsView::GetDocument() 
   { return (C3dsDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_3DSVIEW_H__8D6510C2_87BB_11D1_B1B0_0020AF55E266__INCLUDED_)