www.pudn.com > cad3d.zip > NavigationView.h


#if !defined(AFX_NAVIGATIONVIEW_H__6FFD72E6_99DB_11D4_95C2_B222C56E7608__INCLUDED_) 
#define AFX_NAVIGATIONVIEW_H__6FFD72E6_99DB_11D4_95C2_B222C56E7608__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
// NavigationView.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CNavigationView form view 
 
#ifndef __AFXEXT_H__ 
#include  
#endif 
 
class CNvPageModel; 
class CNvPageTools; 
class CNvPageProperties; 
class CNvPageBase; 
class CCad3DDoc; 
 
class CNavigationView : public CFormView 
{ 
private: 
    typedef enum { PAGE_PROPERTIES = 0, PAGE_MODEL = 1, PAGE_TOOLS = 2 }; 
 
    CNvPageModel*	    m_pPageModel; 
    CNvPageTools*	    m_pPageTools; 
    CNvPageProperties*	m_pPageProperties; 
    CNvPageBase*		m_pCurrentPage; 
 
protected: 
	CNavigationView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CNavigationView) 
 
	CRect				GetPageRect(); 
	void				ShowActivePage(); 
// Form Data 
public: 
	//{{AFX_DATA(CNavigationView) 
	enum { IDD = IDD_NAVIGATIONVIEW }; 
	CTabCtrl	m_tab; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CCad3DDoc*			GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CNavigationView) 
	public: 
	virtual void OnInitialUpdate(); 
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~CNavigationView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
	//{{AFX_MSG(CNavigationView) 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg int	OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnSelchangeNvTab(NMHDR* pNMHDR, LRESULT* pResult); 
	//}}AFX_MSG 
 
	//"Smart" message retranslators  
//	afx_msg void	OnCadViewCommand(UINT nId); 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG   
inline CCad3DDoc* CNavigationView::GetDocument() 
   { return (CCad3DDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NAVIGATIONVIEW_H__6FFD72E6_99DB_11D4_95C2_B222C56E7608__INCLUDED_)