Click here to Skip to main content
11,790,021 members (44,674 online)
Click here to Skip to main content

Text Only Status Bar

, 3 Jun 2000 104.2K 3.6K 22
Rate this:
Please Sign up or sign in to vote.
An easy to use and implement Text Only Status Bar with Tool tip text extracted from the status bar panes.
<!-- Link to source file download -->
  • Download source files - 2 Kb
  • <!-- Link to demo file download -->
  • Download demo project - 37 Kb
  • <!-- Article image -->

    Sample Image - TextOnlyStatusBarTest.gif

    <!-- Add the rest of your HTML here -->


    You must have seen a lot of very fancy Status Bars in different samples and commercial applications with progress bars, animation, images etc etc. Here, I present a technique for making a Text Only Status bar with many text-only panes and with it's own tool tips extracted from the Status Bar panes themselves.

    You can easily replace the standard status bar in an existing SDI/MDI app by including:

    #include "TextualStatusBar.h"

    at the top. For a dialog based app you can create it in OnCreate().

    Although this might not be the best Status Bar around, I've shown you the way to deal with a Status bar and tool tip control as a child window. Furthermore, there are a couple of other (read, better!) ways for adding tool tips to any control. The technique I used in the sample is the same one that I used in an app because it was a requirement. I caught WM_NCHITTEST over the status bar and updated the tool tip text.


    This example also teaches how to get to the individual panes of the status bar and perform an operation on them. This example also illustrates the tight connection between MFC CStatusBar and CStatusBarCtrl classes.

    Please don not hesitate to mail me any bug, suggestion, clarification, query etc.


    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


    About the Author

    Farhan Noor Qureshi
    Software Developer (Senior)
    United States United States
    No Biography provided

    You may also be interested in...

    Comments and Discussions

    QuestionThe Point? Pin
    Peter ritchie28-Nov-02 3:54
    memberPeter ritchie28-Nov-02 3:54 
    AnswerRe: The Point? Pin
    Li Zhaoming12-Dec-02 18:20
    memberLi Zhaoming12-Dec-02 18:20 
    GeneralRe: The Point? Pin
    TuPacMansur15-Jun-05 16:27
    sussTuPacMansur15-Jun-05 16:27 
    GeneralA small fix. Pin
    Andrew Stampor7-Nov-01 11:19
    memberAndrew Stampor7-Nov-01 11:19 
    GeneralUsing global MFC CToolTipCtrl Pin
    Troels K.6-Nov-01 20:39
    memberTroels K.6-Nov-01 20:39 
    Generaltooltips in CCstatusBarCtrl Pin
    Amit Gupta1-Jun-01 18:41
    memberAmit Gupta1-Jun-01 18:41 
    GeneralRe: tooltips in CCstatusBarCtrl Pin
    Farhan Noor Qureshi4-Jun-01 5:28
    memberFarhan Noor Qureshi4-Jun-01 5:28 
    QuestionStatusBar Questions??? Pin
    Prasad8-May-01 19:59
    memberPrasad8-May-01 19:59 
    AnswerRe: StatusBar Questions??? Pin
    Farhan Noor Qureshi9-May-01 5:26
    memberFarhan Noor Qureshi9-May-01 5:26 
    You should use member methods of CStatusBar and CStatusBarCtrl to adjust the size of the tab items so that all of them are visible.

    Although I have never used multiple tab controls on one window but in a commercial app I used a status bar with left and right arrows to let the user know that there are more items to show. And when the arrow is clicked I play hide-and-seek of the items to give the illusion that status bar is being scrolled.

    Smile | :)

    I wish I had but unfortunately I dont have the code for this Cry | :((

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

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

    | Advertise | Privacy | Terms of Use | Mobile
    Web01 | 2.8.1509028.1 | Last Updated 4 Jun 2000
    Article Copyright 2000 by Farhan Noor Qureshi
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid