www.pudn.com > ToolBar_ATL.rar > ToolBarDoc.h
// ToolBarDoc.h: interface for the CToolBarDoc class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TOOLBARDOC_H__74E9D328_7660_4706_8F94_9E480193465C__INCLUDED_)
#define AFX_TOOLBARDOC_H__74E9D328_7660_4706_8F94_9E480193465C__INCLUDED_
#include "KToolBar.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "typedef.h"
class CToolBarDoc
{
public:
void SetPrevHoverIndex(int newIndex);
void SetCurHoverIndex(int newIndex);
void SetBarStyle(BarStyle aNewStyle);
BarStyle GetBarStyle();
int GetCurHoverIndex();
int GetPrevHoverIndex();
TBItem* GetButton(int Index);
void SetBtnCnt(int aBtnCnt);
int GetBtnCnt();
CToolBarDoc();
virtual ~CToolBarDoc();
private:
int m_nBtnCnt; //Button nums.
TBItem* m_pButtons; //Buffer to store buttons infomation.
//When the cursor is on the button, we record it as a hover button.
//Here we record previous hover button index and current hover button index.
short m_CurHoverIndex; //Current hover Button Index
short m_PrevHoverIndex; //Previous hover Button Index
BarStyle m_BarStyle; //Toolbar style, including 16X16,24X24,32X32,48X48 styles.
};
#endif // !defined(AFX_TOOLBARDOC_H__74E9D328_7660_4706_8F94_9E480193465C__INCLUDED_)