Click here to Skip to main content
15,861,172 members
Articles / Desktop Programming / MFC
Article

A dockable, pinnable and skinnable OutlookBar

Rate me:
Please Sign up or sign in to vote.
4.67/5 (23 votes)
31 May 2005 94.8K   3.3K   60   4
This article is based on Ziran Lin 's Pinnable ControlBar.

Sample Image

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

  1. Copy the folder PinOutBar to your project and add the needed icons and cursor resources to your project.
  2. Add this line to your Stdafx.h:
    #include "pinoutbar\pinoutbar.h"
  3. Add the support for PinDockBar, as Ziran does in his article Pinnable ControlBar.
  4. 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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generala bug found Pin
bingqitan8-Jun-06 17:11
bingqitan8-Jun-06 17:11 
GeneralBeautiful !! Pin
WREY1-Jun-05 1:54
WREY1-Jun-05 1:54 
GeneralRe: Beautiful !! Pin
.rich.w1-Jun-05 10:24
.rich.w1-Jun-05 10:24 
GeneralRe: Beautiful !! Pin
lupyhlp092515-Dec-05 21:14
lupyhlp092515-Dec-05 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.