FloodFill function (wingdi.h)
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 color parameter.
BOOL FloodFill( [in] HDC hdc, [in] int x, [in] int y, [in] COLORREF color );
A handle to a device context.
The x-coordinate, in logical units, of the point where filling is to start.
The y-coordinate, in logical units, of the point where filling is to start.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
The following are reasons this function might fail:
- The fill could not be completed.
- The given point has the boundary color specified by the color parameter.
- The given point lies outside the current clipping region, that is, it is not visible on the device.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|