[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  CreateHatchBrush( nStyle, nColor )-> <hBrush>
------------------------------------------------------------------------------


 PARAMETER:

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

                   HS_BDIAGONAL  [3], 45-degree upward hatch (left->right)
                   HS_CROSS      [4], Horizontal and vertical crosshatch
                   HS_DIAGCROSS  [5], 45-degree crosshatch
                   HS_FDIAGONAL  [2], 45-degree downward hatch (left->right)
                   HS_HORIZONTAL [0], Horizontal hatch
                   HS_VERTICAL   [1], Vertical hatch

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


 RETURNS:

  <hBrush> is the handle of the brush if the function is successfull, or
  zero if not


 DESCRIPTION:

  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. When an application has finished using the brush that was 
  created by CreateHatchBrush, it should select the brush out of the
  device context and then delete it by using the DeleteObject function.




See Also: CreatePatternBrush DeleteObject
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson