home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / pcw_c.zip / WFRAME.C < prev    next >
C/C++ Source or Header  |  1991-10-27  |  1KB  |  30 lines

  1. /***********************************************************/
  2. /* File Id.                  Wframe.C                      */
  3. /* Author.                   Stan Milam.                   */
  4. /* Date Written.             11/13/88.                     */
  5. /* Modifications.                                          */
  6. /*                                                         */
  7. /*          (c) Copyright 1989-90 by Stan Milam            */
  8. /*                                                         */
  9. /* Comments: This module will save (wpush), color(wfill),  */
  10. /* frame (wbox) with the current border type & color, a    */
  11. /* single window.                                          */
  12. /***********************************************************/
  13.  
  14. #include "pcw.i"
  15. #include "pcwproto.h"
  16. #define   NULL 0
  17.  
  18. WNDPTR *wframe(int ur,int uc,int lr,int lc,int fclr,int bclr) {
  19.  
  20.      WNDPTR *temp;
  21.  
  22.      if ((temp = wpush(ur,uc,lr,lc)) == (WNDPTR *) NULL)
  23.         return (NULL);
  24.      qfill(temp->urow,temp->ucol,temp->lrow,temp->lcol,fclr,bclr,32);
  25.      qbox (temp->urow,temp->ucol,temp->lrow,temp->lcol);
  26.      temp->attr = (char) ((bclr << 4) + fclr);
  27.      set_cursor_pos(ur+1,uc+1);
  28.      return(temp);
  29. }
  30.