home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / CAO3D.DMS / in.adf / c / size.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-11-26  |  380 b   |  25 lines

  1. void *OpenLibrary();
  2.  
  3. struct GfxBase *GfxBase;
  4. struct IntuitionBase *IntuitionBase;
  5.  
  6. struct Window *w;
  7.  
  8. main()
  9. {
  10. long err,k,d;
  11.  
  12. GfxBase =(struct GfxBase *) OpenLibrary("graphics.library",0);
  13. IntuitionBase = OpenLibrary("intuition.library",0);
  14.  
  15.  
  16.   w=IntuitionBase->ActiveWindow;
  17. for (k=0;k<5;k++){
  18.   SizeWindow(w,-1,-1);
  19.   }
  20.  
  21. CloseLibrary(GfxBase);
  22. CloseLibrary(IntuitionBase);
  23. }
  24.  
  25.