core/vgui/impl/mfc/vgui_mfc_statusbar.h
Go to the documentation of this file.
00001 // This is core/vgui/impl/mfc/vgui_mfc_statusbar.h
00002 #ifndef vgui_mfc_statusbar_h_
00003 #define vgui_mfc_statusbar_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \brief    The MFC implementation of vgui_statusbar.
00010 // \author   Marko Bacic, Oxford RRG
00011 // \date     08 Aug 2000
00012 //
00013 //  Contains class vgui_mfc_statusbar
00014 //
00015 // \verbatim
00016 //  Modifications
00017 //   08-AUG-2000 Marko Bacic - Initial version.
00018 // \endverbatim
00019 
00020 #include <vcl_string.h>
00021 #include <vcl_iosfwd.h>
00022 #include <vgui/vgui_statusbuf.h>
00023 #include <vgui/vgui_statusbar.h>
00024 #include "StdAfx.h"
00025 
00026 //: The MFC implementation of vgui_statusbar.
00027 class vgui_mfc_statusbar : public vgui_statusbar
00028 {
00029  public:
00030 
00031   //: Constructor, creates an MFC status bar object and displays it.
00032   vgui_mfc_statusbar();
00033   //: Destructor.
00034  ~vgui_mfc_statusbar();
00035 
00036   //: Append given text (of given length) to the status bar
00037   int write(const char* text, int n);
00038   //: Append given text to the status bar
00039   int write(const char* text);
00040   //: Updates the status bar by calling OnUpdateStatusBar of vgui_mfc_mainfrm
00041   void update();
00042 
00043   //: MFC status bar object
00044   CStatusBar *statusbar;
00045   //: Text displayed on the statusbar
00046   vcl_string linebuffer;
00047   vgui_statusbuf* statusbuf;
00048   vcl_ostream out;
00049 };
00050 
00051 #endif // vgui_mfc_statusbar_h_