www.pudn.com > SCIDE.rar > MainFrm.h


// MainFrm.h : interface of the CMainFrame class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MAINFRM_H__0B285229_8F20_4764_8C0A_EFFF02CE5A0A__INCLUDED_) 
#define AFX_MAINFRM_H__0B285229_8F20_4764_8C0A_EFFF02CE5A0A__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "WorkSpaceView.h" 
#include "OutputBar.h" 
#include "MenuBar.h" 
 
class CSCDoc; 
class CSCView; 
 
class CMainFrame : public CMDIFrameWnd 
{ 
	DECLARE_DYNAMIC(CMainFrame) 
public: 
	CMainFrame(); 
 
// Attributes 
public: 
	CMyBar		m_wndWorkspace;//左边工程树 
	COutputBar  m_wndOutput;   //信息输出框 
 
	HTREEITEM GetTreeRoot(); 
 
	CTreeCtrl *GetTreeCtrl(); 
 
// Operations 
public: 
	void DelTreeItemsData(HTREEITEM hRoot, HTREEITEM hParenRoot); 
	void AddInfoItem(LPCTSTR lpszItem, int nType = 0); 
	void ClearInfo(); 
 
	HTREEITEM FindTreeNode(CSCDoc *pDoc); 
	void AddTreeNode(CSCDoc *pDoc, CSCView *pView, CString szFileName); 
	void UpdateTreeNode(CSCDoc *pDoc, CSCView *pView, CString szFileName); 
	void DeleteTreeNode(CSCDoc *pDoc); 
	void UpdateFileCount(); 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMainFrame) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected:  // control bar embedded members 
	BOOL        m_bToolSysFunc; 
	CStatusBar  m_wndStatusBar; 
	CToolBar    m_wndToolBar; 
	CMenuBar	m_wndMenuBar;//浮动菜单工具条 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMainFrame) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnViewWorkspace(); 
	afx_msg void OnUpdateViewWorkspace(CCmdUI* pCmdUI); 
	afx_msg void OnViewOutput(); 
	afx_msg void OnUpdateViewOutput(CCmdUI* pCmdUI); 
	afx_msg void OnToolSysfunc(); 
	afx_msg void OnUpdateToolSysfunc(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAINFRM_H__0B285229_8F20_4764_8C0A_EFFF02CE5A0A__INCLUDED_)