Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - createhatch() creates a brush with the specified hatched pattern http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CreateHatch()          Creates a brush with the specified hatched pattern
--------------------------------------------------------------------------------

   Syntax:              CreateHatch( <nStyle>, <nRGBColor> )  --> <hBrush>

                        This function creates a brush that has the specified
                        hatched pattern and color. The brush can be subsequently
                        be selected as the current brush for any device.

   Parameters:

   <nStyle>             nStyle specifies the hatch style of the brush. This
                        parameter can be one of the following values:

                        Value   Meaning

                        HS_BDIAGONAL    45-degree upward hatch (left to right)
                        HS_CROSS        Horizontal and vertical crosshatch
                        HS_DIAGCROSS    45-degree crosshatch
                        HS_FDIAGONAL    45-degree downward hatch (left to right)
                        HS_HORIZONTAL   Horizontal hatch
                        HS_VERTICAL     Vertical hatch

   <nRGBColor>          specifies the foreground color of the brush (the color
                        of the hatches).


   Returns:

   <hBrush>             The return value is the handle of the brush if the
                        function is successful. Otherwise, it is NULL.

   Observations:        When an application has finished using the brush
                        created by the CreateHatchBrush function, it should
                        select the brush out of the device context and then
                        delete it by using the DeleteObject function.

   Source code:         Not provided.

   See also:            CreatePatternBrush()


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson