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


#if !defined(AFX_WORKSPACEVIEW_H__20BA73E5_1C79_4949_9C53_7080B51A10D4__INCLUDED_) 
#define AFX_WORKSPACEVIEW_H__20BA73E5_1C79_4949_9C53_7080B51A10D4__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// WorkSpaceView.h : header file 
// 
 
class CMyBar; 
///////////////////////////////////////////////////////////////////////////// 
// CWorkSpaceView view 
 
class CWorkSpaceView : public CTreeView 
{ 
protected: 
	CWorkSpaceView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CWorkSpaceView) 
 
// Attributes 
public: 
	friend CMyBar; 
 
	CTreeCtrl*	m_pTreeCtrl; 
	CImageList	m_ImageList; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CWorkSpaceView) 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~CWorkSpaceView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected:	 
	CFont		m_Font; 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CWorkSpaceView) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); 
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
 
class CMyBar : public baseCMyBar 
{ 
// Construction 
public: 
    CMyBar(); 
	 
// Attributes 
public: 
	CWorkSpaceView *m_pMyTree; 
	HTREEITEM       m_hRoot; 
// Overridables 
    virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); 
 
// Operations 
public: 
 
// Overrides 
    // ClassWizard generated virtual function overrides 
    //{{AFX_VIRTUAL(CMyBar) 
    //}}AFX_VIRTUAL 
 
// Implementation 
public: 
    virtual ~CMyBar(); 
 
protected: 
     
 //   CFont   m_font; 
 
    // Generated message map functions 
protected: 
    //{{AFX_MSG(CMyBar) 
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
    afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnClose(); 
    //}}AFX_MSG 
    DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_WORKSPACEVIEW_H__20BA73E5_1C79_4949_9C53_7080B51A10D4__INCLUDED_)