BCX_FLOODFILL function

Purpose : The BCX_FLOODFILL function fills an area with a specified color.


 Syntax:

 RetVal% = BCX_FLOODFILL(hWnd, _
                         Xpos%, _
                         Ypos%, _
                  Bordercolor%, _
                    Fillcolor%, _
                   [, DrawHDC])

 Parameters:

  • RetVal% Nonzero integer if the function succeeds, zero if the function fails.
  • hWnd Identifies the window where the area color fill takes place.
  • Xpos% X-coordinate of the starting point for the area color fill.
  • Ypos% Y-coordinate of the starting point for the area color fill.
  • Bordercolor% is an integer representing the RGB color code of the border.
  • Fillcolor% is an integer representing the RGB color code of the fill color.
  • DrawHDC [OPTIONAL] HDC(Handle to Device Context) pointing to an already open HDC. This is useful if a device context is to be written to many times. In this case the programmer is responsible for closing the HDC at the appropriate time.