CToolBarEx Class Reference

#include <ToolBarEx.h>

Inheritance diagram for CToolBarEx:

CBar CPreviewToolBar CRobotControlToolBar CCameraParametersToolBar CDebugKeysToolBar CGameToolBar CLogPlayerToolBar CSimulatedRobotsToolBar CWLANToolBar List of all members.

Public Member Functions

 CToolBarEx ()
 ~CToolBarEx ()
bool Create (CWnd *pParentWnd, UINT nID)
bool SetBarText (LPCTSTR text)
void SetText ()
void SetIcons ()
void AddString (CStatic *pStatic, UINT nID, CString text, int width)
void AddCombo (CComboBox *pComboBox, UINT nID, int width)
void AddSlider (CSliderCtrl *pSlider, UINT nID, int width)
void AddEdit (CEdit *pEdit, UINT nID, int width, CComboBox *pDummyCombo)
void SetImage (UINT nID, int iImage)
void SetBitmaps (UINT nIDButtons, UINT nIDButtonsCold, COLORREF clrMask=RGB(255, 0, 255))
void SetButtons (int nNumButtons, TBBUTTONEX *lpButtons)
void LoadState (LPCTSTR lpszProfileName)
void SaveState (LPCTSTR lpszProfileName)
virtual void Init ()
virtual bool IsTextOptionAvailable () const
virtual bool IsIconOptionAvailable () const
 CToolBarEx ()
 ~CToolBarEx ()
BOOL Create (CWnd *pParentWnd, DWORD dwStyle, UINT nID=AFX_IDW_TOOLBAR)
void SetTextOptions (ETextOptions eTextOptions, bool bUpdate=true)
ETextOptions GetTextOptions () const
void SetIconOptions (EIconOptions eIconOptions, bool bUpdate=true)
EIconOptions GetIconOptions () const
void SetBitmaps (UINT nIDSmallCold, UINT nIDSmallHot, UINT nIDSmallDisabled, UINT nIDLargeCold, UINT nIDLargeHot, UINT nIDLargeDisabled, EIconOptions eIconOptionsDefault, COLORREF clrMask=RGB(255, 0, 255))
void SetButtons (int nNumButtons, TBBUTTONEX *lpButtons, ETextOptions eTextOptionsDefault)
void LoadState (LPCTSTR lpszProfileName)
void SaveState (LPCTSTR lpszProfileName)
virtual void Init ()
virtual bool IsTextOptionAvailable (ETextOptions eTextOptions) const
virtual bool IsIconOptionAvailable (EIconOptions eIconOptions) const

Protected Member Functions

virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual LRESULT DoCustomDraw (NMHDR *pNMHDR, CWnd *pToolBar)
virtual bool HasButtonText (UINT nID)
virtual bool HasButtonTip (UINT nID)
virtual void GetButtonText (UINT nID, CString &strText)
virtual void GetButtonTip (UINT nID, CString &strTip)
CReBarCtrl & GetParentReBarCtrl () const
int GetParentBandIndex () const
void ReloadButtons ()
void UpdateParentBandInfo ()
bool GetButtonInfo (UINT nID, TBBUTTON &tbinfo)
afx_msg LRESULT OnReBarChevronPushed (WPARAM wParam, LPARAM lParam)
afx_msg void OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnGetInfoTip (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBeginAdjust (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEndAdjust (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnQueryInsert (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnQueryDelete (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnGetButtonInfo (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnToolBarChange (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnSave (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnRestore (NMHDR *pNMHDR, LRESULT *pResult)
 DECLARE_MESSAGE_MAP ()
virtual BOOL OnNotify (WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual LRESULT DoCustomDraw (NMHDR *pNMHDR, CWnd *pToolBar)
virtual bool HasButtonText (UINT nID)
virtual bool HasButtonTip (UINT nID)
virtual void GetButtonText (UINT nID, CString &strText)
virtual void GetButtonTip (UINT nID, CString &strTip)
CReBarCtrl & GetParentReBarCtrl () const
int GetParentBandIndex () const
void ReloadButtons ()
void UpdateParentBandInfo ()
bool GetButtonInfo (UINT nID, TBBUTTON &tbinfo)
afx_msg void OnCustomize ()
afx_msg LRESULT OnReBarContextMenu (WPARAM wParam, LPARAM lParam)
afx_msg LRESULT OnReBarChevronPushed (WPARAM wParam, LPARAM lParam)
afx_msg void OnCustomDraw (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnGetInfoTip (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBeginAdjust (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnEndAdjust (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnQueryInsert (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnQueryDelete (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnInitCustomize (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnGetButtonInfo (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnReset (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnToolBarChange (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnSave (NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnRestore (NMHDR *pNMHDR, LRESULT *pResult)
 DECLARE_MESSAGE_MAP ()

Static Protected Member Functions

static LRESULT CALLBACK CBTProc (int nCode, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK CBTProc (int nCode, WPARAM wParam, LPARAM lParam)

Protected Attributes

CArray< TBBUTTONEX, TBBUTTONEX & > m_aButtons
CArray< TBBUTTONEX, TBBUTTONEX & > m_aButtonsSaved
UINT m_nIDSmallCold
UINT m_nIDSmallHot
CImageList m_imageListCold
CImageList m_imageListHot
COLORREF m_clrMask
CArray< TBBUTTONEX, TBBUTTONEX & > m_aButtons
ETextOptions m_eTextOptions
EIconOptions m_eIconOptions
ETextOptions m_eTextOptionsDefault
EIconOptions m_eIconOptionsDefault
UINT m_nIDSmallDisabled
UINT m_nIDLargeCold
UINT m_nIDLargeHot
UINT m_nIDLargeDisabled
CImageList m_imageListDisabled
HGLOBAL m_hToolbarData

Static Protected Attributes

static LPCTSTR m_lpszStateInfoEntry = _T("ToolbarStateInfo (v1.01)")
static CToolBarExm_pToolBar = 0
static HHOOK m_hCBTHook = 0
static CToolBarExm_pToolBar
static CCustomizeDialogm_pCustomizeDlg = 0

Private Member Functions

 DECLARE_DYNAMIC (CToolBarEx)
 DECLARE_DYNAMIC (CToolBarEx)

Friends

class CToolBarPopup
class CCustomizeDialog

Detailed Description

an extended toolbar

Definition at line 41 of file ToolBarEx.h.


Constructor & Destructor Documentation

CToolBarEx::CToolBarEx (  ) 

Definition at line 39 of file ToolBarEx.cpp.

CToolBarEx::~CToolBarEx (  ) 

Definition at line 43 of file ToolBarEx.cpp.

CToolBarEx::CToolBarEx (  ) 

CToolBarEx::~CToolBarEx (  ) 


Member Function Documentation

void CToolBarEx::AddCombo ( CComboBox *  pComboBox,
UINT  nID,
int  width 
)

Definition at line 573 of file ToolBarEx.cpp.

Referenced by CWLANToolBar::Init(), and CGameToolBar::Init().

void CToolBarEx::AddEdit ( CEdit *  pEdit,
UINT  nID,
int  width,
CComboBox *  pDummyCombo 
)

Definition at line 595 of file ToolBarEx.cpp.

void CToolBarEx::AddSlider ( CSliderCtrl *  pSlider,
UINT  nID,
int  width 
)

Definition at line 557 of file ToolBarEx.cpp.

Referenced by CGameToolBar::Init().

void CToolBarEx::AddString ( CStatic *  pStatic,
UINT  nID,
CString  text,
int  width 
)

Definition at line 539 of file ToolBarEx.cpp.

static LRESULT CALLBACK CToolBarEx::CBTProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
) [static, protected]

LRESULT CALLBACK CToolBarEx::CBTProc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
) [static, protected]

Definition at line 424 of file ToolBarEx.cpp.

References ASSERT, m_hCBTHook, and m_pToolBar.

Referenced by OnBeginAdjust().

BOOL CToolBarEx::Create ( CWnd *  pParentWnd,
DWORD  dwStyle,
UINT  nID = AFX_IDW_TOOLBAR 
)

Definition at line 58 of file ToolBarEx.cpp.

References FALSE, TBSTYLE_EX_HIDECLIPPEDBUTTONS, and TRUE.

bool CToolBarEx::Create ( CWnd *  pParentWnd,
UINT  nID 
)

Definition at line 47 of file ToolBarEx.cpp.

References TBSTYLE_EX_HIDECLIPPEDBUTTONS.

Referenced by CBar::Create(), and CPreviewableView< TBase >::DoPrintPreview().

CToolBarEx::DECLARE_DYNAMIC ( CToolBarEx   )  [private]

CToolBarEx::DECLARE_DYNAMIC ( CToolBarEx   )  [private]

CToolBarEx::DECLARE_MESSAGE_MAP (  )  [protected]

CToolBarEx::DECLARE_MESSAGE_MAP (  )  [protected]

virtual LRESULT CToolBarEx::DoCustomDraw ( NMHDR *  pNMHDR,
CWnd *  pToolBar 
) [protected, virtual]

LRESULT CToolBarEx::DoCustomDraw ( NMHDR *  pNMHDR,
CWnd *  pToolBar 
) [protected, virtual]

Definition at line 228 of file ToolBarEx.cpp.

Referenced by OnCustomDraw(), and CToolBarPopup::OnNotify().

bool CToolBarEx::GetButtonInfo ( UINT  nID,
TBBUTTON &  tbinfo 
) [protected]

bool CToolBarEx::GetButtonInfo ( UINT  nID,
TBBUTTON &  tbinfo 
) [protected]

Definition at line 351 of file ToolBarEx.cpp.

References m_aButtons.

Referenced by OnRestore(), and ReloadButtons().

virtual void CToolBarEx::GetButtonText ( UINT  nID,
CString &  strText 
) [protected, virtual]

void CToolBarEx::GetButtonText ( UINT  nID,
CString &  strText 
) [protected, virtual]

Definition at line 265 of file ToolBarEx.cpp.

References VERIFY.

Referenced by GetButtonTip(), CToolBarPopup::OnCreate(), CCustomizeDialog::OnDrawItem(), OnGetButtonInfo(), SetButtons(), and SetTextOptions().

virtual void CToolBarEx::GetButtonTip ( UINT  nID,
CString &  strTip 
) [protected, virtual]

void CToolBarEx::GetButtonTip ( UINT  nID,
CString &  strTip 
) [protected, virtual]

Definition at line 272 of file ToolBarEx.cpp.

References GetButtonText().

Referenced by OnGetInfoTip(), and CToolBarPopup::OnNotify().

EIconOptions CToolBarEx::GetIconOptions (  )  const

Definition at line 207 of file ToolBarEx.cpp.

References m_eIconOptions.

Referenced by CCustomizeDialog::GetButtonSize().

int CToolBarEx::GetParentBandIndex (  )  const [protected]

int CToolBarEx::GetParentBandIndex (  )  const [protected]

Definition at line 300 of file ToolBarEx.cpp.

References ASSERT, and GetParentReBarCtrl().

Referenced by SetBarText(), and UpdateParentBandInfo().

CReBarCtrl& CToolBarEx::GetParentReBarCtrl (  )  const [protected]

CReBarCtrl & CToolBarEx::GetParentReBarCtrl (  )  const [protected]

Definition at line 295 of file ToolBarEx.cpp.

Referenced by GetParentBandIndex(), SetBarText(), and UpdateParentBandInfo().

ETextOptions CToolBarEx::GetTextOptions (  )  const

Definition at line 143 of file ToolBarEx.cpp.

References m_eTextOptions.

virtual bool CToolBarEx::HasButtonText ( UINT  nID  )  [protected, virtual]

Reimplemented in CCameraParametersToolBar, CDebugKeysToolBar, CGameToolBar, CLogPlayerToolBar, CSimulatedRobotsToolBar, CWLANToolBar, CRobotControlToolBar, CBar, and CPreviewToolBar.

bool CToolBarEx::HasButtonText ( UINT  nID  )  [protected, virtual]

Reimplemented in CCameraParametersToolBar, CDebugKeysToolBar, CGameToolBar, CLogPlayerToolBar, CSimulatedRobotsToolBar, CWLANToolBar, CRobotControlToolBar, CBar, and CPreviewToolBar.

Definition at line 255 of file ToolBarEx.cpp.

Referenced by HasButtonTip(), SetButtons(), and SetTextOptions().

virtual bool CToolBarEx::HasButtonTip ( UINT  nID  )  [protected, virtual]

bool CToolBarEx::HasButtonTip ( UINT  nID  )  [protected, virtual]

Definition at line 260 of file ToolBarEx.cpp.

References HasButtonText().

Referenced by OnNotify().

virtual void CToolBarEx::Init (  )  [virtual]

Reimplemented in CCameraParametersToolBar, CDebugKeysToolBar, CGameToolBar, CLogPlayerToolBar, CSimulatedRobotsToolBar, CWLANToolBar, CRobotControlToolBar, CBar, and CPreviewToolBar.

void CToolBarEx::Init (  )  [virtual]

Reimplemented in CCameraParametersToolBar, CDebugKeysToolBar, CGameToolBar, CLogPlayerToolBar, CSimulatedRobotsToolBar, CWLANToolBar, CRobotControlToolBar, CBar, and CPreviewToolBar.

Definition at line 277 of file ToolBarEx.cpp.

References ASSERT.

Referenced by CPreviewableView< TBase >::DoPrintPreview().

bool CToolBarEx::IsIconOptionAvailable ( EIconOptions  eIconOptions  )  const [virtual]

Reimplemented in CPreviewToolBar.

Definition at line 376 of file ToolBarEx.cpp.

bool CToolBarEx::IsIconOptionAvailable (  )  const [virtual]

Definition at line 287 of file ToolBarEx.cpp.

Referenced by CCustomizeDialog::AddIconOption(), and SetIconOptions().

bool CToolBarEx::IsTextOptionAvailable ( ETextOptions  eTextOptions  )  const [virtual]

Reimplemented in CPreviewToolBar.

Definition at line 371 of file ToolBarEx.cpp.

bool CToolBarEx::IsTextOptionAvailable (  )  const [virtual]

Definition at line 282 of file ToolBarEx.cpp.

Referenced by CCustomizeDialog::AddTextOption(), and SetTextOptions().

void CToolBarEx::LoadState ( LPCTSTR  lpszProfileName  ) 

void CToolBarEx::LoadState ( LPCTSTR  lpszProfileName  ) 

Definition at line 182 of file ToolBarEx.cpp.

References m_lpszStateInfoEntry.

Referenced by CFrame::RestoreLayout().

afx_msg void CToolBarEx::OnBeginAdjust ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnBeginAdjust ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 430 of file ToolBarEx.cpp.

References ASSERT, CBTProc(), m_hCBTHook, and m_pToolBar.

afx_msg void CToolBarEx::OnCustomDraw ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnCustomDraw ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 409 of file ToolBarEx.cpp.

References DoCustomDraw().

void CToolBarEx::OnCustomize (  )  [protected]

Definition at line 488 of file ToolBarEx.cpp.

afx_msg void CToolBarEx::OnEndAdjust ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnEndAdjust ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 439 of file ToolBarEx.cpp.

References m_hCBTHook, m_pToolBar, UpdateParentBandInfo(), and VERIFY.

afx_msg void CToolBarEx::OnGetButtonInfo ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnGetButtonInfo ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 461 of file ToolBarEx.cpp.

References FALSE, GetButtonText(), m_aButtons, and TRUE.

afx_msg void CToolBarEx::OnGetInfoTip ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnGetInfoTip ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 414 of file ToolBarEx.cpp.

References GetButtonTip().

void CToolBarEx::OnInitCustomize ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 603 of file ToolBarEx.cpp.

References TBNRF_HIDEHELP.

virtual BOOL CToolBarEx::OnNotify ( WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult 
) [protected, virtual]

BOOL CToolBarEx::OnNotify ( WPARAM  wParam,
LPARAM  lParam,
LRESULT *  pResult 
) [protected, virtual]

Definition at line 214 of file ToolBarEx.cpp.

References HasButtonTip(), and TRUE.

afx_msg void CToolBarEx::OnQueryDelete ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnQueryDelete ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 455 of file ToolBarEx.cpp.

References TRUE.

afx_msg void CToolBarEx::OnQueryInsert ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnQueryInsert ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 450 of file ToolBarEx.cpp.

References TRUE.

afx_msg LRESULT CToolBarEx::OnReBarChevronPushed ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

LRESULT CToolBarEx::OnReBarChevronPushed ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

Definition at line 397 of file ToolBarEx.cpp.

References CWinAppEx::GetInstance(), CToolBarPopup::ShowPopup(), and TPM_VERPOSANIMATION.

LRESULT CToolBarEx::OnReBarContextMenu ( WPARAM  wParam,
LPARAM  lParam 
) [protected]

Definition at line 493 of file ToolBarEx.cpp.

References ID_CUSTOMIZE, IDS_CUSTOMIZE, and VERIFY.

void CToolBarEx::OnReset ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 632 of file ToolBarEx.cpp.

References ASSERT, m_aButtons, m_eIconOptions, m_eIconOptionsDefault, m_eTextOptions, m_eTextOptionsDefault, m_pCustomizeDlg, ReloadButtons(), CCustomizeDialog::SetIconOptions(), SetIconOptions(), CCustomizeDialog::SetTextOptions(), SetTextOptions(), UpdateParentBandInfo(), and VERIFY.

afx_msg void CToolBarEx::OnRestore ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnRestore ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 506 of file ToolBarEx.cpp.

References tagNMTBRESTORE::cbBytesPerRecord, tagNMTBRESTORE::cbData, tagNMTBRESTORE::cButtons, GetButtonInfo(), tagNMTBRESTORE::iItem, tagNMTBRESTORE::pCurrent, tagNMTBRESTORE::pData, tagNMTBRESTORE::tbButton, and VERIFY.

afx_msg void CToolBarEx::OnSave ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnSave ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 492 of file ToolBarEx.cpp.

References tagNMTBSAVE::cbData, tagNMTBSAVE::iItem, tagNMTBSAVE::pCurrent, and tagNMTBSAVE::pData.

afx_msg void CToolBarEx::OnToolBarChange ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

void CToolBarEx::OnToolBarChange ( NMHDR *  pNMHDR,
LRESULT *  pResult 
) [protected]

Definition at line 485 of file ToolBarEx.cpp.

References UpdateParentBandInfo().

void CToolBarEx::ReloadButtons (  )  [protected]

void CToolBarEx::ReloadButtons (  )  [protected]

Definition at line 307 of file ToolBarEx.cpp.

References GetButtonInfo(), and VERIFY.

Referenced by OnReset(), SetButtons(), SetIconOptions(), SetIcons(), and SetTextOptions().

void CToolBarEx::SaveState ( LPCTSTR  lpszProfileName  ) 

void CToolBarEx::SaveState ( LPCTSTR  lpszProfileName  ) 

Definition at line 200 of file ToolBarEx.cpp.

References m_lpszStateInfoEntry.

Referenced by CFrame::WriteLayout().

bool CToolBarEx::SetBarText ( LPCTSTR  text  ) 

Definition at line 524 of file ToolBarEx.cpp.

References GetParentBandIndex(), and GetParentReBarCtrl().

void CToolBarEx::SetBitmaps ( UINT  nIDSmallCold,
UINT  nIDSmallHot,
UINT  nIDSmallDisabled,
UINT  nIDLargeCold,
UINT  nIDLargeHot,
UINT  nIDLargeDisabled,
EIconOptions  eIconOptionsDefault,
COLORREF  clrMask = RGB(255, 0, 255) 
)

Definition at line 215 of file ToolBarEx.cpp.

References m_clrMask, m_eIconOptionsDefault, m_nIDLargeCold, m_nIDLargeDisabled, m_nIDLargeHot, m_nIDSmallCold, m_nIDSmallDisabled, m_nIDSmallHot, and SetIconOptions().

void CToolBarEx::SetBitmaps ( UINT  nIDButtons,
UINT  nIDButtonsCold,
COLORREF  clrMask = RGB(255, 0, 255) 
)

Definition at line 117 of file ToolBarEx.cpp.

References m_clrMask, m_nIDSmallCold, m_nIDSmallHot, and SetIcons().

Referenced by CBar::Init(), CWLANToolBar::Init(), and CGameToolBar::Init().

void CToolBarEx::SetButtons ( int  nNumButtons,
TBBUTTONEX lpButtons,
ETextOptions  eTextOptionsDefault 
)

Definition at line 232 of file ToolBarEx.cpp.

References m_aButtons, m_eTextOptionsDefault, SetTextOptions(), TBBUTTONEX::tbinfo, and VERIFY.

void CToolBarEx::SetButtons ( int  nNumButtons,
TBBUTTONEX lpButtons 
)

Definition at line 127 of file ToolBarEx.cpp.

References ASSERT, BTNS_SHOWTEXT, GetButtonText(), HasButtonText(), m_aButtons, m_aButtonsSaved, ReloadButtons(), TBBUTTONEX::tbinfo, TBSTYLE_EX_MIXEDBUTTONS, UpdateParentBandInfo(), and VERIFY.

Referenced by CBar::Init(), CWLANToolBar::Init(), and CGameToolBar::Init().

void CToolBarEx::SetIconOptions ( EIconOptions  eIconOptions,
bool  bUpdate = true 
)

Definition at line 148 of file ToolBarEx.cpp.

References ASSERT, ioSmallIcons, IsIconOptionAvailable(), m_clrMask, m_eIconOptions, m_imageListCold, m_imageListDisabled, m_imageListHot, m_nIDLargeCold, m_nIDLargeDisabled, m_nIDLargeHot, m_nIDSmallCold, m_nIDSmallDisabled, m_nIDSmallHot, ReloadButtons(), szImageLarge(), szImageSmall(), UpdateParentBandInfo(), and VERIFY.

Referenced by OnReset(), SetBitmaps(), and CCustomizeDialog::SetIconOptions().

void CToolBarEx::SetIcons (  ) 

Definition at line 74 of file ToolBarEx.cpp.

References ASSERT, m_clrMask, m_imageListCold, m_imageListHot, m_nIDSmallCold, m_nIDSmallHot, ReloadButtons(), szImageSmall(), UpdateParentBandInfo(), and VERIFY.

Referenced by SetBitmaps().

void CToolBarEx::SetImage ( UINT  nID,
int  iImage 
)

Definition at line 1266 of file ToolBarEx.cpp.

Referenced by CSimulatedRobotsToolBar::setImage(), and CWLANToolBar::setImages().

void CToolBarEx::SetText (  ) 

Definition at line 67 of file ToolBarEx.cpp.

void CToolBarEx::SetTextOptions ( ETextOptions  eTextOptions,
bool  bUpdate = true 
)

Definition at line 76 of file ToolBarEx.cpp.

References ASSERT, BTNS_SHOWTEXT, GetButtonText(), HasButtonText(), IsTextOptionAvailable(), m_aButtons, m_eTextOptions, ReloadButtons(), TBSTYLE_EX_MIXEDBUTTONS, toNoTextLabels, toTextLabels, toTextOnRight, UpdateParentBandInfo(), and VERIFY.

Referenced by OnReset(), SetButtons(), and CCustomizeDialog::SetTextOptions().

void CToolBarEx::UpdateParentBandInfo (  )  [protected]

void CToolBarEx::UpdateParentBandInfo (  )  [protected]

Definition at line 321 of file ToolBarEx.cpp.

References GetParentBandIndex(), GetParentReBarCtrl(), max, and VERIFY.

Referenced by OnEndAdjust(), OnReset(), OnToolBarChange(), SetButtons(), SetIconOptions(), SetIcons(), and SetTextOptions().


Friends And Related Function Documentation

friend class CCustomizeDialog [friend]

Definition at line 51 of file ToolBarEx.h.

CToolBarPopup [friend]

Definition at line 45 of file ToolBarEx.h.


Member Data Documentation

CArray< TBBUTTONEX, TBBUTTONEX& > CToolBarEx::m_aButtons [protected]

Definition at line 109 of file ToolBarEx.h.

CArray< TBBUTTONEX, TBBUTTONEX& > CToolBarEx::m_aButtons [protected]

Definition at line 103 of file ToolBarEx.h.

Referenced by GetButtonInfo(), CCustomizeDialog::OnDrawItem(), OnGetButtonInfo(), OnReset(), SetButtons(), and SetTextOptions().

CArray< TBBUTTONEX, TBBUTTONEX& > CToolBarEx::m_aButtonsSaved [protected]

Definition at line 105 of file ToolBarEx.h.

Referenced by CToolBarPopup::OnCreate(), and SetButtons().

COLORREF CToolBarEx::m_clrMask [protected]

Definition at line 112 of file ToolBarEx.h.

Referenced by SetBitmaps(), SetIconOptions(), and SetIcons().

EIconOptions CToolBarEx::m_eIconOptions [protected]

Definition at line 112 of file ToolBarEx.h.

Referenced by GetIconOptions(), OnReset(), and SetIconOptions().

EIconOptions CToolBarEx::m_eIconOptionsDefault [protected]

Definition at line 114 of file ToolBarEx.h.

Referenced by OnReset(), and SetBitmaps().

ETextOptions CToolBarEx::m_eTextOptions [protected]

Definition at line 111 of file ToolBarEx.h.

Referenced by GetTextOptions(), OnReset(), and SetTextOptions().

ETextOptions CToolBarEx::m_eTextOptionsDefault [protected]

Definition at line 113 of file ToolBarEx.h.

Referenced by OnReset(), and SetButtons().

static HHOOK CToolBarEx::m_hCBTHook = 0 [static, protected]

Definition at line 116 of file ToolBarEx.h.

Referenced by CBTProc(), OnBeginAdjust(), and OnEndAdjust().

HGLOBAL CToolBarEx::m_hToolbarData [protected]

Definition at line 125 of file ToolBarEx.h.

CImageList CToolBarEx::m_imageListCold [protected]

Definition at line 110 of file ToolBarEx.h.

Referenced by SetIconOptions(), and SetIcons().

CImageList CToolBarEx::m_imageListDisabled [protected]

Definition at line 123 of file ToolBarEx.h.

Referenced by SetIconOptions().

CImageList CToolBarEx::m_imageListHot [protected]

Definition at line 111 of file ToolBarEx.h.

Referenced by SetIconOptions(), and SetIcons().

static LPCTSTR CToolBarEx::m_lpszStateInfoEntry = _T("ToolbarStateInfo (v1.01)") [static, protected]

Definition at line 114 of file ToolBarEx.h.

Referenced by LoadState(), and SaveState().

UINT CToolBarEx::m_nIDLargeCold [protected]

Definition at line 118 of file ToolBarEx.h.

Referenced by SetBitmaps(), and SetIconOptions().

UINT CToolBarEx::m_nIDLargeDisabled [protected]

Definition at line 120 of file ToolBarEx.h.

Referenced by SetBitmaps(), and SetIconOptions().

UINT CToolBarEx::m_nIDLargeHot [protected]

Definition at line 119 of file ToolBarEx.h.

Referenced by SetBitmaps(), and SetIconOptions().

UINT CToolBarEx::m_nIDSmallCold [protected]

Definition at line 108 of file ToolBarEx.h.

Referenced by SetBitmaps(), SetIconOptions(), and SetIcons().

UINT CToolBarEx::m_nIDSmallDisabled [protected]

Definition at line 117 of file ToolBarEx.h.

Referenced by SetBitmaps(), and SetIconOptions().

UINT CToolBarEx::m_nIDSmallHot [protected]

Definition at line 109 of file ToolBarEx.h.

Referenced by SetBitmaps(), SetIconOptions(), and SetIcons().

CCustomizeDialog * CToolBarEx::m_pCustomizeDlg = 0 [static, protected]

Definition at line 129 of file ToolBarEx.h.

Referenced by OnReset().

CToolBarEx* CToolBarEx::m_pToolBar [static, protected]

Definition at line 128 of file ToolBarEx.h.

CToolBarEx * CToolBarEx::m_pToolBar = 0 [static, protected]

Definition at line 115 of file ToolBarEx.h.

Referenced by CBTProc(), OnBeginAdjust(), and OnEndAdjust().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:26:14 2006 for DT2005.panorama by  doxygen 1.4.7