#include <ToolBarEx.h>
Public Member Functions | |
| CToolBarEx () | |
| CImageList * | get_Images () |
| void | AutoSize () const |
| BOOL | InsertGroup (wgTButtonInfo *pButtons, CBitmap *pBitmap, CBitmap *pBmpDisabled, int cButtons) |
| BOOL | ShowGroup (int iGrp, int iWhere) |
| void | HideGroup (int iGrp) |
| BOOL | OnTBGetButtonInfo (NMHDR *nm) |
| BOOL | OnNotify (LPNMHDR nm) |
| void | UpdateGroupToolTips (int iGrp, LPCSTR *ppszTips, UINT uSize) |
| BOOL | Create (CWnd *pParent) |
| virtual | ~CToolBarEx () |
Protected Member Functions | |
| fsTBInfo * | FindButton (UINT nID) |
| void | UpdateSize () |
| afx_msg void | OnRButtonUp (UINT nFlags, CPoint point) |
Protected Attributes | |
| int | m_cNames |
| CToolBarCtrl * | m_bar |
| fs::list< fs::list< fsTBInfo > > | m_vGroups |
| CImageList | m_images |
| CImageList | m_dimages |
Classes | |
| struct | fsTBInfo |
Definition at line 28 of file ToolBarEx.h.
| CToolBarEx::CToolBarEx | ( | ) |
| CToolBarEx::~CToolBarEx | ( | ) | [virtual] |
Definition at line 21 of file ToolBarEx.cpp.
| CImageList * CToolBarEx::get_Images | ( | ) |
Definition at line 271 of file ToolBarEx.cpp.
References m_images.
Referenced by CDlg_TUMChanged::OnInitDialog().
| void CToolBarEx::AutoSize | ( | ) | const |
| BOOL CToolBarEx::InsertGroup | ( | wgTButtonInfo * | pButtons, | |
| CBitmap * | pBitmap, | |||
| CBitmap * | pBmpDisabled, | |||
| int | cButtons | |||
| ) |
Definition at line 57 of file ToolBarEx.cpp.
References _TB_USE_ALPHA, wgTButtonInfo::bStyle, fsTButtonInfo::bStyle, COLORREF, fsTButtonInfo::idCommand, wgTButtonInfo::iIdCommand, CToolBarEx::fsTBInfo::iImage, fsTButtonInfo::iName, m_cNames, m_dimages, m_images, m_vGroups, wgTButtonInfo::pszToolTip, fsTButtonInfo::strToolTip, and TRUE.
Referenced by fsPluginMgr::LoadBuiltIn(), and CMainFrame::OnCreate().
| BOOL CToolBarEx::ShowGroup | ( | int | iGrp, | |
| int | iWhere | |||
| ) |
Definition at line 109 of file ToolBarEx.cpp.
References fsTButtonInfo::bStyle, FALSE, fsTButtonInfo::idCommand, CToolBarEx::fsTBInfo::iImage, fsTButtonInfo::iName, m_vGroups, TRUE, and UpdateSize().
Referenced by CMainFrame::OnCreate(), CPlugToolBar::SetActivePlugin(), and CPluginFrame2::SetActivePlugin().
| void CToolBarEx::HideGroup | ( | int | iGrp | ) |
Definition at line 140 of file ToolBarEx.cpp.
References m_bar, and UpdateSize().
Referenced by CPlugToolBar::SetActivePlugin(), and CPluginFrame2::SetActivePlugin().
| BOOL CToolBarEx::OnTBGetButtonInfo | ( | NMHDR * | nm | ) |
| BOOL CToolBarEx::OnNotify | ( | LPNMHDR | nm | ) |
Definition at line 160 of file ToolBarEx.cpp.
References FALSE, FindButton(), NULL, fsTButtonInfo::strToolTip, and TRUE.
Referenced by CMainFrame::OnNotify().
Definition at line 219 of file ToolBarEx.cpp.
References m_vGroups.
Referenced by CMainFrame::ApplyLanguage(), and fsPluginMgr::OnNewLng().
| BOOL CToolBarEx::Create | ( | CWnd * | pParent | ) |
Definition at line 31 of file ToolBarEx.cpp.
References _TB_SIZE_X, _TB_SIZE_Y, FALSE, m_bar, m_dimages, m_images, and TRUE.
Referenced by CMainFrame::OnCreate().
| CToolBarEx::fsTBInfo * CToolBarEx::FindButton | ( | UINT | nID | ) | [protected] |
Definition at line 195 of file ToolBarEx.cpp.
References m_bar, m_vGroups, and NULL.
Referenced by OnNotify().
| void CToolBarEx::UpdateSize | ( | ) | [protected] |
| void CToolBarEx::OnRButtonUp | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
Definition at line 226 of file ToolBarEx.cpp.
int CToolBarEx::m_cNames [protected] |
CToolBarCtrl* CToolBarEx::m_bar [protected] |
fs::list<fs::list <fsTBInfo> > CToolBarEx::m_vGroups [protected] |
Definition at line 73 of file ToolBarEx.h.
Referenced by FindButton(), InsertGroup(), ShowGroup(), and UpdateGroupToolTips().
CImageList CToolBarEx::m_images [protected] |
CImageList CToolBarEx::m_dimages [protected] |
1.5.6