Information Bar
Posted
by Steve Bryndin
on May 14th, 1999
This bar is similar to the Outlook, Outlook express, or Front Page 98 editor. It is useful to display application specific information with text and bitmaps. You can change dynamically:
Text, Text Color, Background Color, Text Font, Bitmap.
CInfoBar class have following methods:
SetTextColor(COLORREF crNew);
SetBackgroundColor(COLORREF cr);
SetTextFont(LPCTSTR lpFontName);
SetBitmap(UINT nResID);
SetText(LPCTSTR lpszNew);
Declare in the CMainFrame header member variable
CInfoBar m_InfoBar;
In the CMainFrame OnCreate function call
/// INFO BAR CODE ////////////////////////// m_InfoBar.Create(NULL, NULL, WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | CBRS_TOP, CRect(0,0,0,0), this, AFX_IDW_STATUS_BAR); m_InfoBar.SetBarStyle(CBRS_ALIGN_TOP);

Comments
How to hide the infobar in print preview?
Posted by Legacy on 06/04/2003 12:00amOriginally posted by: Joerg Hoffmann
If I hide it in my Mainframe Wnd and I select print preview it will be shown there.
If I leave the preview the infobar will be still shown.
What can I do?
ReplyHow to make infobar go all the way accross the window?
Posted by Legacy on 11/09/2001 12:00amOriginally posted by: Craig
Hi,
Let me say, great job on the class, it's really cool. I have one question though, I have a UI that is much like the DevStudio UI (CDockWnd on the left and CView on the right.) When I use the infobar, it only displays accross the CView class and stops at the CDockWnd. Is there any way to have it display above the CDockWnd as well?
Thanks in advance,
Craig
ReplyTransparent bitmap image
Posted by Legacy on 03/17/2001 12:00amOriginally posted by: Ron van Gelderen
Hi:
How can I display a transparent bitmap image on the CInfoBar? Bitmaps with dark gray backgrounds like fine on most computers, but some have different color schemes and so the bitmap's background color doesn't match the infobar's color.
TIA-
Ron van Gelderen
ReplyRE:Great class, just one thing
Posted by Legacy on 02/15/2001 12:00amOriginally posted by: Jesse Gearhart
ReplyHow to use the info-bar in a dialog?
Posted by Legacy on 12/03/2000 12:00amOriginally posted by: Michael Menne
Does anyone know how to use the bar in a dialog instead a view.
I tryed it with:
m_InfoBar.Create(NULL, NULL, WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | CBRS_TOP, CRect(0,0,0,0), this, AFX_IDW_STATUS_BAR);
in OnInitDialog(), but the bar wasen't shown even when I tryed m_InfoBar.ShowWindow();
May anyone help me?
ReplyIs there any way of putting the InfoBar in the right pane only?
Posted by Legacy on 08/16/2000 12:00amOriginally posted by: Nwahs
Thanks
ReplyAssertion in barcore.cpp
Posted by Legacy on 12/26/1999 12:00amOriginally posted by: olive
ReplyAssertion in barcore.cpp
Posted by Legacy on 12/26/1999 12:00amOriginally posted by: olive
ReplyText appears - but is blocked out
Posted by Legacy on 08/18/1999 12:00amOriginally posted by: Philip Bailey
I like this control a lot and have played with the demo project successfully (VC6).
However, when I use the control in my application, the text always appears with a white background. I can set the text colour to, say, purple and the background to dark grey. Both these changes take effect, but the purple text has a white rectangluar boarder.
I would like the purple text to simply appear on the dark grey background.
Any ideas would be greatly appreciated...
Philip
ReplyHow do I dynamically change the text
Posted by Legacy on 08/15/1999 12:00amOriginally posted by: Patrick Sherrill
I know I should know how to do this, but I don't.
I inserted this in my MainFrame Class. Now how do I change the text dynamically from functions int my View Class?
Thanks for your time.
Pat..
ReplyLoading, Please Wait ...