home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / mgl11 / demo / demowind.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-09  |  1.9 KB  |  64 lines

  1. /****************************************************************************
  2. *
  3. *                    Demo - Demonstration Program for the
  4. *                        MegaGraph Graphics Library
  5. *
  6. *                    Copyright (C) 1994 SciTech Software.
  7. *                            All rights reserved.
  8. *
  9. * Filename:        $RCSfile: demowind.cpp $
  10. * Version:        $Revision: 1.2 $
  11. *
  12. * Language:        C++ 3.0
  13. * Environment:    any
  14. *
  15. * Description:    Member functions for the class DemoWindow, a class
  16. *                performing each of the graphics library demos in the
  17. *                current window.
  18. *
  19. * $Id: demowind.cpp 1.2 1994/03/09 11:29:32 kjb release $
  20. *
  21. ****************************************************************************/
  22.  
  23. #include "demo.hpp"
  24.  
  25. #pragma    hdrstop
  26.  
  27. #include "demowind.hpp"
  28. #include "demoarea.hpp"
  29.  
  30. /*----------------------------- Implementation ----------------------------*/
  31.  
  32. DemoWindow::DemoWindow(const TRect& bounds)
  33.     : TDialog(bounds,NULL,wfFramed),
  34.       TWindowInit(TWindow::initFrame,TWindow::initTitleBar)
  35. /****************************************************************************
  36. *
  37. * Function:        DemoWindow::DemoWindow
  38. * Parameters:    bounds        - Bounding box for the window
  39. *
  40. * Description:    Constructor for the DemoWindow class. The window is used
  41. *                to render each of the demos currently being executed.
  42. *
  43. ****************************************************************************/
  44. {
  45.     options &= ~(ofSelectable | ofFirstClick);
  46.  
  47.     TRect r(inner);
  48.     r.offset(-bounds.left(),-bounds.top());
  49.     insert(new DemoArea(r));
  50. }
  51.  
  52. void DemoWindow::drawBackground(const TRect&)
  53. /****************************************************************************
  54. *
  55. * Function:        DemoWindow::drawBackground
  56. *
  57. * Description:    Draws the background for the window. Since the window is
  58. *                completely covered by the rendering area, we do not
  59. *                draw the window background.
  60. *
  61. ****************************************************************************/
  62. {
  63. }
  64.