// ClassViewBar1.h: interface for the CClassViewBar class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLASSVIEWBAR1_H__FFAF44CB_B481_4420_8FDF_AF44ABE73D6C__INCLUDED_)
#define AFX_CLASSVIEWBAR1_H__FFAF44CB_B481_4420_8FDF_AF44ABE73D6C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ClassTreeWnd.h"

class CClassToolBar : public CBCGPToolBar
{
	virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler)	
	{		
		CBCGPToolBar::OnUpdateCmdUI ((CFrameWnd*) GetOwner (), bDisableIfNoHndler);
	}

	virtual BOOL AllowShowOnList () const		{	return FALSE;	}
};

class CClassViewBar : public CBCGPDockingControlBar  
{
public:
	CClassViewBar();
	virtual ~CClassViewBar();

	void AdjustLayout ();

protected:
	CClassToolBar	m_wndToolBar;
	CClassTreeWnd	m_wndClassView;
	CImageList		m_ClassViewImages;

	UINT			m_nCurrSort;

	void FillClassView ();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClassViewBar)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

	// Generated message map functions
protected:
	//{{AFX_MSG(CClassViewBar)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnClassAddMemeberFunction();
	afx_msg void OnClassAddMemeberVariable();
	afx_msg void OnClassDefinition();
	afx_msg void OnClassProperties();
	afx_msg void OnNewFolder();
	afx_msg void OnPaint();
	//}}AFX_MSG
	afx_msg LRESULT OnChangeActiveTab (WPARAM, LPARAM);
	afx_msg void OnSort (UINT id);
	afx_msg void OnUpdateSort (CCmdUI* pCmdUI);
	DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_CLASSVIEWBAR1_H__FFAF44CB_B481_4420_8FDF_AF44ABE73D6C__INCLUDED_)
