Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CDC::FloodFill
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL FloodFill( int x, int y, DWORD crColor );
 
  Parameter   Description
 
  <x>         Specifies the logical x-coordinate of the point where
              filling begins.
 
  <y>         Specifies the logical y-coordinate of the point where
              filling begins.
 
  <crColor>   Specifies the color of the boundary.
 
  Remarks
 
  Fills an area of the display surface with the current brush. The area is
  assumed to be bounded as specified by <crColor>. The FloodFill function
  begins at the point specified by <x> and <y> and continues in all
  directions to the color boundary.
 
  Only memory-device contexts and devices that support raster-display
  technology support the FloodFill member function. For information about
  RC_BITBLT capability, see the GetDeviceCaps member function.
 
  The ExtFloodFill function provides similar capability but greater
  flexibility.
 
  Return Value
 
  TRUE if the function is successful. FALSE if the filling could not be
  completed, the given point has the boundary color specified by
  <crColor>, or the point is outside the clipping region.
 
  See Also
 
  CDC::ExtFloodFill, CDC::GetDeviceCaps, ::FloodFill
 
 
                                     -♦-