home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ICLUI.ZIP / SPLITCV / ASPLITCV.HPP < prev    next >
Text File  |  1993-03-09  |  3KB  |  47 lines

  1. #ifndef ASPLITCV_HPP
  2. #define ASPLITCV_HPP
  3. /******************************************************************************/
  4. /* Canvas Classes Example 1 - Split Canvas                                    */
  5. /*                                                                            */
  6. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  7. /*                                                                            */
  8. /* DISCLAIMER OF WARRANTIES:                                                  */
  9. /*   The following [enclosed] code is sample code created by IBM              */
  10. /*   Corporation.  This sample code is not part of any standard IBM product   */
  11. /*   and is provided to you solely for the purpose of assisting you in the    */
  12. /*   development of your applications.  The code is provided "AS IS",         */
  13. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  14. /*   arising out of your use of the sample code, even if they have been       */
  15. /*   advised of the possibility of such damages.                              */
  16. /******************************************************************************/
  17. /* NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          */
  18. /******************************************************************************/
  19.  
  20. #include <iframe.hpp>                   // IFrameWindow
  21. #include <istattxt.hpp>                 // IStaticText
  22. #include <isplitcv.hpp>                 // ISplitCanvas
  23.  
  24. /******************************************************************************/
  25. /* Class   : ASplitCanvas                                                     */
  26. /*                                                                            */
  27. /* Purpose : main window for split canvas sample                              */
  28. /*           the window contains two split canvases and three static          */
  29. /*           text areas. The horizontal split canvas is the client area.      */
  30. /*           The vertical split canvas is placed into the top pane of         */
  31. /*           the horizontal split canvas.                                     */
  32. /*           ASplitCanvas is derived from IFrameWindow                        */
  33. /******************************************************************************/
  34. class ASplitCanvas : public IFrameWindow
  35. {
  36.   public:
  37.     ASplitCanvas(unsigned long windowId);        // constructor
  38.  
  39.   private:
  40.     ISplitCanvas  horzCanvas,                    // note: the order declaration
  41.                   vertCanvas;                    // is the order that windows
  42.     IStaticText   lText,                         // are created in
  43.                   rText,
  44.                   bText;
  45. };
  46. #endif
  47.