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


// MainFrm.h : interface of the CMainFrame class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MAINFRM_H__3600FE4E_5F37_11D4_9520_B4FBF86C1308__INCLUDED_) 
#define AFX_MAINFRM_H__3600FE4E_5F37_11D4_9520_B4FBF86C1308__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class C3DPoint; 
class CCad3DView; 
class CNavigationView; 
 
class CMainFrame : public CFrameWnd 
{ 
	 
protected: // create from serialization only 
	CMainFrame(); 
	DECLARE_DYNCREATE(CMainFrame) 
 
// Attributes 
protected: 
	CStatusBar			m_wndStatusBar; 
	CToolBar			m_tbMain;     
	CToolBar			m_tbViewport; 
	CSplitterWnd		m_wndSplitter; 
	CNavigationView*	m_pNavView; 
	CCad3DView*			m_pCadView; 
 
protected: 
	void				DockToolBar(CToolBar& rToolBar, UINT nIdRes, UINT nDockBarId = 0, LPCRECT lpRect = NULL);					 
public: 
 
// Operations 
public: 
	void				SetStatusBarPoint(const C3DPoint& point); 
	void				SetStatusBarFps(const double dFps); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMainFrame) 
	public: 
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void		AssertValid() const; 
	virtual void		Dump(CDumpContext& dc) const; 
#endif 
 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMainFrame) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
		// NOTE - the ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code! 
	//}}AFX_MSG 
	 
	//"Smart" message retranslators  
	afx_msg void		OnCadViewCommand(UINT nId); 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAINFRM_H__3600FE4E_5F37_11D4_9520_B4FBF86C1308__INCLUDED_)