www.pudn.com > DolbySOphia.rar > DOLView.h


// DOLView.h : interface of the CDOLView class 
// 
#define  MAXN 100 
#define  TSMAX 8 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DOLVIEW_H__2F6A2D41_0EEA_11D3_AFC6_00ED140000A2__INCLUDED_) 
#define AFX_DOLVIEW_H__2F6A2D41_0EEA_11D3_AFC6_00ED140000A2__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
class CDOLView : public CView 
{ 
protected: // create from serialization only 
	CDOLView(); 
	DECLARE_DYNCREATE(CDOLView) 
 
// Attributes 
public: 
	CDOLDoc* GetDocument(); 
	//char str[20]; 
	CString str,Rule; 
	char Command; 
	//void Draw(char str[20],int level); 
	void  Draw( CString str ,int level); 
	void  TurState(char Command); 
	int Klevel  ; 
	int TurDir; 
	float Turx,Tury; 
	int TSDir[TSMAX],TSSize; 
	float TSX[TSMAX],TSY[TSMAX]; 
//	char Kar[5];    
	//char Rule[20],rle[20] ; 
	float that, stan; 
	COLORREF m_pColor; 
	int drawtrue; 
	int v1,v2; 
 
		  
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDOLView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual void OnInitialUpdate(); 
	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 ~CDOLView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	afx_msg void OnContextMenu(CWnd*, CPoint point); 
	//{{AFX_MSG(CDOLView) 
	afx_msg void Ondraw(); 
	afx_msg void Onselectcolor(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in DOLView.cpp 
inline CDOLDoc* CDOLView::GetDocument() 
   { return (CDOLDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DOLVIEW_H__2F6A2D41_0EEA_11D3_AFC6_00ED140000A2__INCLUDED_)