home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
lang
/
skel_azt.sha
/
drawscroll.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-07-08
|
705b
|
29 lines
/*
* drawscroll.c -- move and size the scrollbars for this window
*/
#include <quickdraw.h>
#include <control.h>
#include <window.h>
#include "def.h"
void
drawscroll(i)
short i;
{
extern ControlHandle hscroll[NWINDOWS];
extern ControlHandle vscroll[NWINDOWS];
extern WindowPtr wp[NWINDOWS];
HideControl(vscroll[i]);
MoveControl(vscroll[i], (short)(wp[i]->portRect.right - 15), -1);
SizeControl(vscroll[i], 16, (short)(wp[i]->portRect.bottom - 13));
ShowControl(vscroll[i]);
HideControl(hscroll[i]);
MoveControl(hscroll[i], -1, (short)(wp[i]->portRect.bottom - 15));
SizeControl(hscroll[i], (short)(wp[i]->portRect.right - 13), 16);
ShowControl(hscroll[i]);
} /* end of drawscroll() */