home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / notebook / notebook.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.4 KB  |  79 lines

  1. /******************************************************************************
  2. * .FILE:         notebook.hpp                                                 *
  3. *                                                                             *
  4. * .DESCRIPTION:  Notebook Sample Program:  Class Header                       *
  5. *                                                                             *
  6. * .CLASSES:      ABitmapNotebook                                              *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *    Licensed Material - Program-Property of IBM                              *
  10. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  11. *                                                                             *
  12. * .DISCLAIMER:                                                                *
  13. *   The following [enclosed] code is sample code created by IBM               *
  14. *   Corporation.  This sample code is not part of any standard IBM product    *
  15. *   and is provided to you solely for the purpose of assisting you in the     *
  16. *   development of your applications.  The code is provided 'AS IS',          *
  17. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  18. *   arising out of your use of the sample code, even if they have been        *
  19. *   advised of the possibility of such damages.                               *
  20. *                                                                             *
  21. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  22. *                                                                             *
  23. ******************************************************************************/
  24. #ifndef NOTEBOOK_HPP
  25. #define NOTEBOOK_HPP
  26.  
  27. #include <iframe.hpp>
  28. #include <inotebk.hpp>
  29. #include <ivport.hpp>
  30. #include <ibmpctl.hpp>
  31.  
  32. #include "notebook.h"
  33.  
  34. /**************************************************************************
  35. * Class ABitmapNotebook -- Main window that displays a notebook containg  *
  36. *   four bitmaps.                                                         *
  37. **************************************************************************/
  38. class ABitmapNotebook : public IFrameWindow
  39. {
  40.   public:
  41. /*---------------------------- Constructor -------------------------------|
  42. | Construct the object with:                                              |
  43. | 1) the window id                                                        |
  44. -------------------------------------------------------------------------*/
  45.     ABitmapNotebook(unsigned long windowId);
  46.  
  47. /*----------------------------- Destructor -------------------------------|
  48. | Destruct the object with:                                               |
  49. | 1) the window id                                                        |
  50. -------------------------------------------------------------------------*/
  51.     virtual
  52.      ~ABitmapNotebook() { };
  53.  
  54.   private:
  55.     IResourceLibrary
  56.       reslib;
  57.     ISize
  58.       tabSize;
  59.     IBitmapHandle
  60.       tab1,
  61.       tab2,
  62.       tab3,
  63.       tab4;
  64.     INotebook
  65.       notebook;
  66.     IViewPort
  67.       viewport1,
  68.       viewport2,
  69.       viewport3,
  70.       viewport4;
  71.     IBitmapControl
  72.       bitmap1,
  73.       bitmap2,
  74.       bitmap3,
  75.       bitmap4;
  76. };
  77.  
  78. #endif
  79.