home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VIOUTL.ZIP / BOXERASE.C < prev    next >
C/C++ Source or Header  |  1989-06-28  |  1KB  |  47 lines

  1. /* ----------------------------------------------------------------------
  2. .context BoxErase
  3. .category VioUtil
  4. void far BoxErase ( PBYTE cb, int x1, int y1, int x2, int y2 )
  5.  
  6. Description: 
  7.      Erase an area of the screen as defined by the x and y parameters.
  8. X1, Y1 = top left corner of box.  X2, Y2 = bottom right corner of box.
  9.  
  10. Parameter     Description
  11. -------------------------------------------------------------------------
  12. cb            a 32 bit pointer to a two byte character attribute
  13.               that defines the character to fill the screen area with.
  14.  
  15. x1            upper left column of box
  16.  
  17. y1            upper left row of box
  18.  
  19. x2            lower right column of box
  20.  
  21. y2            lower right row of box
  22.  
  23.  
  24. Returns: 
  25.  
  26. Comments: 
  27.  
  28. References: 
  29.  
  30. See Also: box, ExpBox
  31. .ref box, ExpBox
  32.  
  33. Development History: 
  34.   Date         Programmer          Description of modification   
  35.   06/16/1989   Paul Montgomery     Initial development           
  36. -------------------------------------------------------------------- */
  37.  
  38. #define INCL_SUB
  39. #include <os2.h>
  40.  
  41. void far BoxErase ( PBYTE cb, int x1, int y1, int x2, int y2 )
  42.    {
  43.    VioScrollDn ( y1, x1, y2, x2, y2-y1+1,cb,0 );
  44.    }
  45.  
  46.  
  47.