home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / skel_azt.sha / drawscroll.c < prev    next >
C/C++ Source or Header  |  1986-07-08  |  705b  |  29 lines

  1.  
  2. /*
  3.  *    drawscroll.c -- move and size the scrollbars for this window
  4.  */
  5.  
  6. #include <quickdraw.h>
  7. #include <control.h>
  8. #include <window.h>
  9.  
  10. #include "def.h"
  11.  
  12. void
  13. drawscroll(i)
  14. short    i;
  15. {
  16.     extern    ControlHandle    hscroll[NWINDOWS];
  17.     extern    ControlHandle    vscroll[NWINDOWS];
  18.     extern    WindowPtr        wp[NWINDOWS];
  19.  
  20.     HideControl(vscroll[i]);
  21.     MoveControl(vscroll[i], (short)(wp[i]->portRect.right - 15), -1);
  22.     SizeControl(vscroll[i], 16, (short)(wp[i]->portRect.bottom - 13));
  23.     ShowControl(vscroll[i]);
  24.     HideControl(hscroll[i]);
  25.     MoveControl(hscroll[i], -1, (short)(wp[i]->portRect.bottom - 15));
  26.     SizeControl(hscroll[i], (short)(wp[i]->portRect.right - 13), 16);
  27.     ShowControl(hscroll[i]);
  28. } /* end of drawscroll() */
  29.