#if !defined(AFX_PRETOOLBAR_H__CE25FADA_5975_49DC_B0C0_7CDD83B73813__INCLUDED_)
#define AFX_PRETOOLBAR_H__CE25FADA_5975_49DC_B0C0_7CDD83B73813__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PreToolbar.h : _xZkqqHx_iDhHiDgCiDfPiBfL_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "StcImageList.h"		// For CFCStcImageList.
#include "PropertyPageBase.h"	// For Baseclass.

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif
#define SUPER_CLASS CFCPropertyPageBase

/////////////////////////////////////////////////////////////////////////////
// CFCPreToolbar _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

class CFCPreToolbar : public SUPER_CLASS
{
protected:
typedef SUPER_CLASS BASE_CLASS;

	DECLARE_DYNCREATE(CFCPreToolbar)

// _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfGiDiHiDjD_xHqqkZx_
public:
	CFCPreToolbar ();
	~CFCPreToolbar ();

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
protected:
	virtual BOOL	CheckConsistency (UINT uiToolbarId);
	virtual void	UpdateModified ();
	virtual void	UpdateActivate ();

	virtual void	InitAllTable ();
	virtual void	InitTableByCurrent (UINT uiToolbarId);
	virtual void	InitTableByDefault (UINT uiToolbarId);
	virtual UINT	GetCurrentToolbarId () const;

	virtual void	UpdateImageList ();
	virtual void	MakeCommandIndex ();
	virtual long	CommandIdToIndex (UINT uiCommandId) const;
	virtual UINT	IndexToCommandId (long lIndex) const;

	virtual void	GetToolbarCommandList (UINTVector& vCommandId, UINT uiToolbarId);
	virtual void	OnToolbarChanged ();
	virtual void	OnPlacedChanged ();

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
protected:
	UINTVector				m_vCommandId;					// _xZkqqHx_iDeDiDiBiBfLiDfHiDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_->_xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	map<UINT, long>			m_mpCommandIdToIndex;			// _xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_ID->_xZkqqHx_iDeDiDiBiBfLiDfHiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
	map<UINT, UINTVector>	m_mpToolbarToCommandIdVector;	// _xZkqqHx_iDgDiBfLiDiLiDgPiBfL_xHqqkZx_->_xZkqqHx_iDfCiDhNiDjDiDgIiIoKjHjHiDgFiBfLiDhFiDiLiBeC_xHqqkZx_
	BOOL					m_bIsConsistent;				// _xZkqqHx_jGlDjGlFiPiCiCkJiBeI_xHqqkZx_

// _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_ _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_
	//{{AFX_DATA(CFCPreToolbar)
	enum { IDD = IDD_PRE_TOOLBAR };
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iDiBiDjDiDgPiCpAjCmHiJmBiClFiCnMiClHiBeC_xHqqkZx_
	CFCStcImageList	m_stcImagePool;
	CFCStcImageList	m_stcImageList;
	//}}AFX_DATA


// _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgI_xHqqkZx_
	// ClassWizard _xZkqqHx_iCmNiJlMjBhKiKnGjAjEiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCpAjAlGjAkMiClFiCnMiClHiBeC_xHqqkZx_

	//{{AFX_VIRTUAL(CFCPreToolbar)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV _xZkqqHx_iDfEiDhMiBfLiDgH_xHqqkZx_
	//}}AFX_VIRTUAL

// _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_
protected:
	// _xZkqqHx_jAlGjAkMiClDiCoKiClNiDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDhNiDgCiDhGiKnGjAjE_xHqqkZx_
	//{{AFX_MSG(CFCPreToolbar)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnSelchangeTbsCmbToolbarName();
	afx_msg void OnTbsBtnPlace();
	afx_msg void OnTbsBtnUnplace();
	afx_msg void OnTbsBtnMoveUp();
	afx_msg void OnTbsBtnMoveDown();
	afx_msg void OnTbsBtnInitByDefault();
	afx_msg void OnTbsBtnInitByCurrent();
	afx_msg void OnSelchangeTbsLstButtonPool();
	afx_msg void OnSelchangeTbsLstButtonPlaced();
	//}}AFX_MSG
	afx_msg LRESULT OnUserImglstSelchanged(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
}; // class CFCPreToolbar.

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ _xZkqqHx_iCmNjBePiNhDiCmMjClMjBePiCmJjCmHiJmBiCmMjAoJiMlOiCpAjBhNjDpMiClFiCnMiClHiBeC_xHqqkZx_

#endif // !defined(AFX_PRETOOLBAR_H__CE25FADA_5975_49DC_B0C0_7CDD83B73813__INCLUDED_)
