Click here to Skip to main content
Licence 
First Posted 28 Apr 2000
Views 96,918
Bookmarked 20 times

Text Only Status Bar

By | 3 Jun 2000 | Article
An easy to use and implement Text Only Status Bar with Tool tip text extracted from the status bar panes.
  • Download source files - 2 Kb
  • Download demo project - 37 Kb
  • Sample Image - TextOnlyStatusBarTest.gif

    Introduction

    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.

    TextOnlyStatusBarTest_small.gif

    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.


    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

    About the Author

    Farhan Noor Qureshi

    Software Developer (Senior)

    United States United States

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    QuestionThe Point? PinmemberPeter ritchie3:54 28 Nov '02  
    AnswerRe: The Point? PinmemberLi Zhaoming18:20 12 Dec '02  
    GeneralRe: The Point? PinsussTuPacMansur16:27 15 Jun '05  
    GeneralA small fix. PinmemberAndrew Stampor11:19 7 Nov '01  
    GeneralUsing global MFC CToolTipCtrl PinmemberTroels K.20:39 6 Nov '01  
    Generaltooltips in CCstatusBarCtrl PinmemberAmit Gupta18:41 1 Jun '01  
    GeneralRe: tooltips in CCstatusBarCtrl PinmemberFarhan Noor Qureshi5:28 4 Jun '01  
    QuestionStatusBar Questions??? PinmemberPrasad19:59 8 May '01  
    AnswerRe: StatusBar Questions??? PinmemberFarhan Noor Qureshi5:26 9 May '01  

    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.

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