[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  FillRect( hDC, aRect, hBrush )-> nil
------------------------------------------------------------------------------


 PARAMETER:

  <hDC>          Is the handle that identifies the device context. 

  <aRect>        A Clipper Array with four elements, representing the upper
                 left and lower right corners of a rectangle {nTop, nLeft,
                 nBottom, nRight }

  <hBrush>       Is a handle that identifies the brush used to fill the
                 rectangle



 DESCRIPTION:

  The FillRect function fills a given rectangle by using the specified
  brush. It fills the complete rectangle, including left and top borders,
  but does not fill the right and bottom borders.
  The brush must be created by using either CreateHatchBrush(),  
  CreatePatternBrush(), or retrieved by using GetStockObject()

  When filling the specified rectangle, FillRect() does not include the
  rectangle's right and bottom sides. Graphics device interface (GDI) fills
  a rectangle up to, but not including, the right column and bottom row,
  regardless of the current mapping mode. 
  FillRect compares the values of the top, bottom, left, and right members
  of the specified <aRect> Array. If bottom is less than or equal to top,
  or if right is less than or equal to left, the function does not draw the
  rectangle. 

 SOURCE:

  SOURCE\WINAPI\RECTS.C



See Also: GetClientRect GetWndRect CreateHatchBrush CreatePatternBrush GetStockObject
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson