SECControlBarManager Class
class SECControlBarManager: public CObject
The SECControlBarManager class manages control bars as well as the state of an application's main frame. It supports dynamic save and restore of control bars.
Defined in: sbarmgr.h
Comments
Included in Objective Toolkit is SECControlBar, which replaces CControlBar as the base class for all your control bars. SECControlBar adds support for sizing while docked, automatic stretching when resized and a default context menu with facilities for adding and removing menu items.
See the VIZ sample in the \SAMPLES\TOOLKIT\STANDARD\DOCKING\VIZ directory for a demonstration of this class.
Class Members
Default constructor.
SECControlBarManager(CFrameWnd* pFrameWnd)
Constructor taking a pointer to the parent frame window.
virtual CFrameWnd* GetFrameWnd() const
Returns the a pointer to the main frame.
virtual DWORD GetBarTypeID(CControlBar* pBar) const
Virtual overload provided for override only. No functionality implemented in this base class. It will differentiate between a tool bar and a menu bar in the custom classes.
virtual SECControlBarInfoEx* CreateControlBarInfoEx(SECControlBarInfo*) const
Virtual overload provided for override only. No functionality implemented in this base class. It will create an appropriate extended information pointer (pInfoEx) for the bar info provided so that the bar may be persistant.