Jump: Search:

Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access 2007/2010 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2010 (32 bit), 2007, 2003, 2002, 2000, and
Visual Basic 6.0!

Also available for:
Access 97/95


View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?

 

"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP

 

 

 

 

 
Royalty free source code library modules for Microsoft Access, VB6, VBA, OfficeRoyalty free source code library modules for Microsoft Access, VB6, VBA, OfficeVBA and VB6 Source Code Library Download the free trial version of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA
Category: Microsoft Visual Basic 6 : Graphics
Description: Creating graphics using the Windows API and native VB6 commands

Class: CGDIFloodFill

Class that fills an area using Windows API calls.

The Windows API FloodFill function fills a region of the form or picture which is bounded by a solid line of pixels of the same color. It is often used to "color in" parts of the form. The routines in this class allow you to use the Windows API FloodFill function.

Procedure Name

Type

Description

(Declarations) Declarations Declarations and private variables for the CGDIFloodFill class
BrushStyle Property Sets the current style used to fill the area. The value of this property should be set to one of the Windows API Brush Style constants (BS_SOLID, BS_HOLLOW, BS_HATCHED etc.) which are exposed as EnumFloodFillBrushStyles constants in this class.
FillColor Property Gets the current value of the color used for the flood fill
FillStyle Property Gets the current value of the style used for the flood fill. The value should be one of 0-FLOODFILLBORDER, or 1-FLOODFILLSURFACE (see the declarations sections of this class for these constants.) If FillStyle is FLOODFILLBORDER, Windows assumes that the area to be filled is completely bounded by the color specified by the FillColor property. The function begins filling at the point specified by the X and Y properties and continues in all directions until it reaches the boundary. If FillStyle is FLOODFILLSURFACE, Windows assumes that the area to be filled is a single color. The function begins to fill the area at the point specified by the X and Y properties, and continues in all directions, filling all adjacent regions containing the color specified by FillColor.
HatchStyle Property Sets the current value of the style used for the flood fill when the BrushStyle is set to hatched The value of this property should be set to one of the Windows API Hatch Style constants (HS_HORIZONTAL, HS_BDIAGONAL, HS_CROSS etc.) which are exposed as EnumFloodFillHatchStyles constants in this class. ' Params : eValue Style used for the flood fill as defined by the EnumFloodFillHatchStyles enumerated type
x Property Gets the location of the horizontal starting point for the flood fill
Y Property Gets the location of the vertical starting point for the flood fill
Class_Initialize Initialize Set initial values to defaults which may be overridden with property settings
FloodFill Method Fills an area with a specified color
TranslateVBColor Private Translates VB color constants for system colors into GDI equivalents. VB color constants, such as vbRed, or vbBlue, or values returned using the QBColor() or RGB() functions, can be used directly for the color values used with Windows API calls. However, the VB color constants for system colors (vbButtonFace, vb3DShadow etc.) do not map correctly to those expected by Windows. This wrapper function accepts either form of constant, and translates the value, if necessary, into the equivalent value expected by the Windows GDI subsystem.

Overview of Total Visual SourceBook

The source code in Total Visual SourceBook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Additional Resources

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © FMS, Inc., Vienna, Virginia
Celebrating our 26th Year of Software Excellence