Objective Toolkit : Chapter 8 Docking Windows : Docking Window Control Bar Classes
Docking Window Control Bar Classes
The following sections describe the Objective Toolkit Control bar classes.
SECControlBar
The SECControlBar class derives from CControlBar and adds the internal state and implementation details supporting sizing when docked. It also adds a gripper bar as a private class, a gripper close button, a gripper expand button, and methods for context menu manipulation. Virtual methods are provided for advanced users to manipulate docking and other features.
SECDialogBar
SECDialogBar is an interface equivalent replacement for CDialogBar. SECDialogBar serves as the base class for all of your dialog bars.
SECDialogBar does nothing more than re-derive from SECControlBar, so that all member variables and implementation details exist to facilitate sizing docked windows and more. This class introduces no new member variables or functions.
NOTE >> All dialog bars formerly derived from CDialogBar must be rederived from SECDialogBar. You cannot use CDialogBars with Objective Toolkit’s docking window enhancements because they lack the member variables required to perform the sizing calculations.
See the viz sample in the samples\toolkit\MFC\docking\viz subdirectory for an example of how to use this class.
SECControlBarManager
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. This class derives from CCmdTarget.
SECDockState
TheSECDockState class derives from CDockState and adds the additional states introduced by SECControlBarInfo. The docking states are stored in member variables that are not recorded by CDockState. SECDockState inherits the core docking state from CDockState and adds all the new attributes required for enhanced docking window functionality.
NOTE >> If your application uses our docking window architecture, you must replace all occurrences of CDockState with SECDockState.