home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Simple Slideshow / ShowHideUtils.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-16  |  821 b   |  41 lines  |  [TEXT/MMCC]

  1. #include <Types.h>
  2. #include <LowMem.h>
  3. #include <Windows.h>
  4. #include <QuickDraw.h>
  5.  
  6. #include "ShowHideUtils.h"
  7.  
  8. /*\
  9. |*| ---------------------------------------------------------------------
  10. |*| ShowHideUtils.c
  11. |*|   functions used by ShowHideMBar and ShowHideCorners
  12. |*| ---------------------------------------------------------------------
  13. \*/
  14.  
  15. void SH_ForceUpdate (RgnHandle rgn)
  16. {
  17.     WindowRef    wpFirst = LMGetWindowList();
  18.     
  19.     PaintBehind(wpFirst, rgn);                        /* redraw windows behind front */    
  20.     CalcVisBehind(wpFirst, rgn);                    /* redraw windows behind front */    
  21. }
  22.  
  23.  
  24.  
  25.  
  26. /*
  27.  
  28.     RgnHandle    tmpRgn;
  29.     WindowPeek    theWP;
  30.  
  31.     for ( theWP = wpFirst;
  32.             theWP != nil;
  33.             theWP = theWP->nextWindow )
  34.     {
  35.         tmpRgn = NewRgn();
  36.         RectRgn(tmpRgn, &(theWP->port.portRect) );
  37.         CopyRgn(tmpRgn, theWP->port.visRgn );
  38.         DisposeRgn(tmpRgn);
  39.     }
  40.  
  41. */