home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / c / intuitionpp / ipp / mgwindow.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-01  |  1.3 KB  |  36 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. ///////////////////////////////////////////////////////////////////////////////
  3. ///////////////////                                        ////////////////////
  4. ///////////////////           file : mgwindow.cc           ////////////////////
  5. ///////////////////                                        ////////////////////
  6. ///////////////////////////////////////////////////////////////////////////////
  7. ///////////////////////////////////////////////////////////////////////////////
  8.  
  9. #include <intuition/intuitionbase.h>
  10. #include <graphics/gfxbase.h>
  11. #include <graphics/gfxmacros.h>
  12. #include <clib/graphics_protos.h>
  13. #include <clib/intuition_protos.h>
  14.  
  15. #include "mgwindow.h"
  16.  
  17. MGWindow :: MGWindow() {}
  18. MGWindow :: MGWindow(struct NewWindow *neww) : CWindow(neww),GfxWindow(),MsgWindow() {}
  19. MGWindow :: MGWindow(struct ExtNewWindow *neww) : CWindow(neww),GfxWindow(),MsgWindow() {}
  20. MGWindow :: MGWindow(struct NewWindow *neww, struct TagItem *tags) : CWindow(neww, tags),GfxWindow(),MsgWindow() {}
  21. MGWindow :: ~MGWindow() {}
  22.  
  23. BOOL MGWindow :: open()
  24. {
  25.     BOOL ok = CWindow::open();
  26.     if (menu && ok) SetMenuStrip(wind,menu);
  27.     if (ok) ok = hdlon(wind->RPort);
  28.     return ok;
  29. }
  30.  
  31. void MGWindow :: close()
  32. {
  33.     if (wind) ClearMenuStrip(wind);
  34.     GfxWindow :: close();
  35. }
  36.