home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cpptba.zip / TOOLBAR.HPP < prev    next >
C/C++ Source or Header  |  1993-11-30  |  2KB  |  67 lines

  1. //
  2. // Project: Toolbars under IBM User Interface Class Libraries
  3. // File:    Toolbar.hpp
  4. // Author:  Stewart Hyde
  5. // Created: Nov   29, 1993
  6. // Updated: Nov   30, 1993
  7. //
  8. // Description:
  9. //
  10.  
  11. #ifndef _IFRAME_HPP_
  12. #include <iframe.hpp>                   //IFrameWindow Class
  13. #endif
  14.  
  15. #ifndef _ICMDHDR_HPP_
  16. #include <icmdhdr.hpp>                  //ICommandHandler & ICommandEvent
  17. #endif
  18.  
  19. #ifndef _ISTATTXT_HPP_
  20. #include <istattxt.hpp>                 //IStaticText Class
  21. #endif
  22.  
  23. #ifndef _ISTRING_HPP_
  24. #include <istring.hpp>                  //IString Class
  25. #endif
  26.  
  27. #ifndef _IBMPCTL_HPP_
  28. #include <ibmpctl.hpp>                  //IBitmapControl Class
  29. #endif
  30.  
  31. #ifndef _IMENUBAR_HPP_
  32. #include <imenubar.hpp>                 //IMenuBar Class                      
  33. #endif
  34.  
  35.  
  36. class ToolBar : public IFrameWindow,    //   Define ToolBar Class from
  37.                 public ICommandHandler  //   IFrameWindow & ICommandHandler
  38. {
  39.    public:
  40.       ToolBar(unsigned long windowId);     
  41.       Boolean command(ICommandEvent& cEvent);
  42. };                                      // End of Toolbar class definition
  43.  
  44.  
  45. class MainWin : public IFrameWindow,    //   Define MainWin Class from
  46.                 public ICommandHandler  //   IFrameWindow & ICommandHandler
  47. {
  48. public:
  49.    MainWin(unsigned long windowId);     
  50.    ~MainWin();
  51.    Boolean command(ICommandEvent& cEvent);
  52. protected:
  53.    void createTopToolBar();
  54.    void destroyTopToolBar();
  55.    void createSideBar();
  56.    void destroySideBar();
  57.    void setupMenuBar(unsigned long windowId);     
  58. private:
  59.    IMenuBar                 *menuBar;
  60.    Boolean                  fToolBarActive; 
  61.    ToolBar                  *myToolBar; 
  62.    Boolean                  fSideBarActive; 
  63.    ToolBar                  *mySideBar; 
  64. };                                      // End of MainWin class definition
  65.  
  66.  
  67.