FloodFill

  BOOL FloodFill(hdc, nXStart, nYStart, crFill)    
  HDC hdc; /* handle of device context */
  int nXStart; /* starting-point for fill operation */
  int nYStart; /* starting-point for fill operation */
  COLORREF crFill; /* color used for fill */

The FloodFill function fills an area of the display surface with the current brush. The area is assumed to be bounded as specified by the crFill parameter.

This function is included only for compatibility purposes. New Win32 applications should use ExtFloodFill with FLOODFILLBORDER specified.

Parameters

hdc

Identifies a device context.

nXStart

Specifies the logical x-coordinate of the point where filling begins.

nYStart

Specifies the logical y-coordinate of the point where filling begins.

crFill

Specifies the color of the boundary or of the area to be filled.

Return Value

The return value is TRUE if the function is successful. It is FALSE if:

See Also

ExtFloodFill