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

  1. /* wmborder.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/winmgr.h>
  4. #include "winmgr2.h"
  5.  
  6. void wm_border (wm_handle wh, int bflag, int battr, const char *title,
  7.                 int tflag, int tattr)
  8. {
  9.   if (wh->used != WM_USED || bflag == 0 || wh->border == 0)
  10.     return;
  11.   wh->border = bflag;
  12.   wh->battr = battr;
  13.   _wm_border1 (wh, tflag, tattr, title);
  14.   if (wh->display)
  15.     _wm_put1 (wh);
  16.   else
  17.     wh->update_req = TRUE;
  18.   _wm_cursor1 ();
  19. }
  20.