home *** CD-ROM | disk | FTP | other *** search
- #include <Types.h>
- #include <LowMem.h>
- #include <Windows.h>
- #include <QuickDraw.h>
-
- #include "ShowHideUtils.h"
-
- /*\
- |*| ---------------------------------------------------------------------
- |*| ShowHideUtils.c
- |*| functions used by ShowHideMBar and ShowHideCorners
- |*| ---------------------------------------------------------------------
- \*/
-
- void SH_ForceUpdate (RgnHandle rgn)
- {
- WindowRef wpFirst = LMGetWindowList();
-
- PaintBehind(wpFirst, rgn); /* redraw windows behind front */
- CalcVisBehind(wpFirst, rgn); /* redraw windows behind front */
- }
-
-
-
-
- /*
-
- RgnHandle tmpRgn;
- WindowPeek theWP;
-
- for ( theWP = wpFirst;
- theWP != nil;
- theWP = theWP->nextWindow )
- {
- tmpRgn = NewRgn();
- RectRgn(tmpRgn, &(theWP->port.portRect) );
- CopyRgn(tmpRgn, theWP->port.visRgn );
- DisposeRgn(tmpRgn);
- }
-
- */