CreateHatchBrush.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

CreateHatchBrush (GDI32.@)

SYNOPSIS

HBRUSH CreateHatchBrush
 (
  INT      style,
  COLORREF color
 )

DESCRIPTION

Create a logical brush with a hatched pattern.

PARAMS

style [In] Direction of lines for the hatch pattern (HS_* values from "wingdi.h").

color [In] Colour of the hatched pattern.

RETURNS

A handle to the created brush, or a NULL handle if the brush cannot be created.

NOTES

- This function uses CreateBrushIndirect(3w) to create the brush.

- The brush returned should be freed by the caller using DeleteObject(3w) when it is no longer required.

IMPLEMENTATION

Defined in "wingdi.h".

Implemented in "dlls/gdi32/brush.c".

Debug channel "gdi".