home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / VIDEO / WMCLOSEA.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  483 b   |  26 lines

  1. /* wmclosea.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <stdlib.h>
  4. #include <sys/winmgr.h>
  5. #include "winmgr2.h"
  6.  
  7. void wm_close_all (void)
  8. {
  9.   int i;
  10.   wm_handle p;
  11.  
  12.   for (i = _wm_count-1; i >= 0; --i)
  13.     {
  14.       p = _wm_idx[i];
  15.       if (p->open)
  16.         {
  17.           _wm_unhide1 (p, NULL);
  18.           p->open = FALSE;
  19.           p->display = FALSE;
  20.           p->visible = FALSE;
  21.         }
  22.     }
  23.   _wm_hide1 ();
  24.   _wm_cursor1 ();
  25. }
  26.