|
The BCGControlBar Library framework supports Outlook-style
shortcut control bars. You can use these bars to enhance
workspace management in your application.
Here are two screenshots from the "BCGOutlookDemo" example. The first picture
shows the control bar displaying a page with a list of buttons. The second
picture shows the same control bar displaying a page with embedded tree
control.

The functionality of "outlook" control bars is provided by CBCGOutlookBar
class. To use this class perform the following steps:
- Embed a CBCGOutlookBar object into the main frame window object.
- When processing the WM_CREATE message (OnCreate),
create (CBCGOutlookBar::Create).
- Setup the control bar context in the following way:
- Call CBCGOutlookBar::AddPage for each page you want to display on
the "outlook" control bar. If a particular page should contain another
control (not list of buttons), create this control first and pass a pointer
to it as a third parameter to the AddPage function. Note. It is recommended
to embed this control to the main frame window object as well. You can
initialize the control as usual.
- Call CBCGOutlookBar::AddButton for each button you want to
display on the specific page.
- The first AddButton's parameter is an image of a button.
You can specify either HBITMAP,
HICON, disk file name or index to a CBCGToolBarImages
collection.
- The third AddButton's parameter is a command ID of a button. Add for
each button either ON_COMMAND or ON_COMMAND_EX_RANGE
macros and handlers to process button commands.
- Call CBCGOutlookBar::EnableTextLabels
(TRUE) to enable text labels.
- Call CBCGOutlookBar::EnableSplitter
to make the "outlook" bar resizable.
- Call CBCGOutlookBar::SetBarStyle to provide additional control
bar styles.
Back to the
Developer Area
|