SECToolBarManager Class
class SECToolBarManager: public SECControlBarManager
Implements the toolbar management to allow runtime customization of SECCustomToolBar/SECMenuBar objects.
Defined in: tbarmgr.h
See Also
SECControlBarManager SECCustomToolBar SECMenuBar
Class Members
Construction/Initialization
Constructor
SECToolBarManager(CFrameWnd* pFrameWnd,CFrameWnd* pOwnerFrame=NULL)
Constructor
Operations
void DefineDefaultToolBar(UINT nID, const CString& strTitle, UINT nBtnCount, UINT* lpBtnIDs, DWORD dwAlignment = CBRS_ALIGN_ANY, UINT nDockBarID = AFX_IDW_DOCKBAR_TOP, UINT nDockNextToID = NULL, BOOL bDocked = TRUE, BOOL bVisible = TRUE)
Define a customizable toolbar default state.
void DefineDefaultToolBar(UINT nID, const CString& strTitle, UINT nToolbarID, UINT& nRetButtonCount, UINT*& pRetButtonArray, DWORD dwAlignment = CBRS_ALIGN_ANY, UINT nDockBarID = AFX_IDW_DOCKBAR_TOP, UINT nDockNextToID = NULL, BOOL bDocked = TRUE, BOOL bVisible = TRUE)
Define a customizable toolbar default state based on a toolbar resource.
BOOL IsToolBarCommand(CRect& rect) const
Returns TRUE (with the btn rect. in question) if we are currently processing a button command.
virtual SECCustomToolBar* ToolBarUnderRect(const CRect& rect) const
Returns the toolbar under the given window rect.
virtual SECCustomToolBar* ToolBarFromID(const UINT nToolBarID) const
Returns the toolbar pointer for a given default toolbar ID.
SECCustomToolBar* CreateUserToolBar(LPCTSTR lpszTitle = NULL)
Creates a new 'user' toolbar
BOOL LoadToolBarResource(LPCTSTR lpszStdBmpName, LPCTSTR lpszLargeBmpName = NULL)
Loads the toolbar resource (to be shared by all toolbars)
BOOL LoadToolBarResource(UINT nIDStdBmp, UINT nIDLargeBmp = 0)
Loads the toolbar resource (to be shared by all toolbars)
BOOL LoadToolBarResource()
Loads the toolbar resource (to be shared by all toolbars)
BOOL AddToolBarResource(LPCTSTR lpszStdBmpName, LPCTSTR lpszLargeBmpName = NULL)
Appends a toolbar resource to the current LoadToolBarResource image
BOOL AddToolBarResource(UINT nIDStdBmp, UINT nIDLargeBmp = 0)
Appends a toolbar resource to the current LoadToolBarResource image
BOOL AddBitmapResource(LPCTSTR lpszStdBmpName, LPCTSTR lpszLargeBmpName, const UINT* lpIDArray, UINT nIDCount)
Append a new bitmap resource for use with the available custom toolbar buttons
BOOL AddBitmapResource(UINT nIDstdBmpName, UINT nIDLargeBmpName, const UINT* lpIDArray, UINT nIDCount)
Append a new bitmap resource for use with the available custom toolbar buttons
BOOL AddBitmap(HBITMAP hBmpSmall, HBITMAP hBmpLarge, const UINT* lpIDArray, UINT nIDCount)
Append a new bitmap for use with the available custom toolbar buttons
int ExecViewToolBarsDlg()
Runs the view toolbars dialog.
void InformBtns(UINT nID, UINT nCode, void* pData)
Passes notification through to all buttons of nID
State Configuration
void EnableToolTips(BOOL bEnable=TRUE)
Enable tooltips for all custom toolbars
void EnableFlyBy(BOOL bEnable=TRUE)
Enable flyby help for all custom toolbars
BOOL ToolTipsEnabled() const
Return current tooltip state
BOOL FlyByEnabled() const
Return current flyby help state
void EnableLargeBtns(BOOL bEnable=TRUE)
Enable large button mode
BOOL LargeBtnsEnabled() const
Return current large button mode status
void EnableCoolLook(BOOL bEnable=TRUE,DWORD dwExCoolLookStyles=CBRS_EX_COOLBORDERS|CBRS_EX_GRIPPER)
Enable "cool look" mode
BOOL CoolLookEnabled() const
Return current "cool look" mode
void SetButtonMap(const SECBtnMapEntry* pMap)
Intialize the toolbar button map information across all toolbars
const SECBtnMapEntry* GetButtonMap() const
Get the button map information
virtual void SetDefaultDockState()
Load a default toolbar configuration state.