Introduction
This idea came from Ziran Lin's article Pinnable ControlBar and Iuri Apollonio's article An Outlook98 bar-like control. I think that a dockable OutlookBar is very cool, so I wrote this article.
Using the code
- Copy the folder PinOutBar to your project and add the needed icons and cursor resources to your project.
- Add this line to your Stdafx.h:
#include "pinoutbar\pinoutbar.h"
- Add the support for
PinDockBar
, as Ziran does in his article Pinnable ControlBar.
- Add this line in the
OnCreate
event of your main window: m_MyBar.m_wndOutlookBar.SetOwner(this);
then add the message handler:
afx_msg LRESULT OnOutbarNotify(WPARAM wParam, LPARAM lParam);
ON_MESSAGE(WM_OUTBAR_NOTIFY, OnOutbarNotify)
long CMainFrame::OnOutbarNotify(WPARAM wParam, LPARAM lParam)
{
...
}
OK, your project can receive the messages from OutlookBar now.
Points of Interest
I used a free UI library - AppFace to skin this OutlookBar. You may delete appface.dll simply if you do not need it.
Credit
Thanks for Ziran Lin and his article Pinnable ControlBar, Iuri Apollonio and his article An Outlook98 bar-like control. Thanks for the help of the AppFace Support Team.