home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 215.lha / AmyLoad / setwindowinfo.c < prev    next >
C/C++ Source or Header  |  1996-02-14  |  559b  |  23 lines

  1. #include    <intuition/intuition.h>
  2. #include    "execdef.h"
  3. #include    "intuidef.h"
  4. #include    "windowinfo.h"
  5.  
  6. #include    "SetWindowInfo.proto"
  7.  
  8. void
  9. SetWindowInfo(window)
  10.     register Window  *window;
  11. {
  12.     register WindowInfo *info;
  13.  
  14.     info = WINDOWINFO(window);
  15.  
  16.     info->leftedge = BORDERWIDTH;
  17.     info->rightedge = window->Width - BORDERWIDTH - 1;
  18.     info->width = window->Width - BORDERWIDTH * 2;
  19.     info->topedge = BORDERHEIGHT;
  20.     info->bottomedge = window->Height - BORDERHEIGHT - 1;
  21.     info->height = window->Height - BORDERHEIGHT * 2;
  22. }
  23.