.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CreateBrushIndirect 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCreateBrushIndirect\fR (GDI32.@) .SH SYNOPSIS HBRUSH CreateBrushIndirect ( const LOGBRUSH* \fIbrush\fR ) .SH DESCRIPTION .PP Create a logical \fIbrush\fR with a given style, color or pattern. .SH PARAMS \fIbrush\fR \fB[In]\fR Pointer to a \fBLOGBRUSH\fR structure describing the desired \fIbrush\fR. .PP .SH RETURNS .PP A handle to the created \fIbrush\fR, or a \fBNULL\fR handle if the \fIbrush\fR cannot be created. .SH NOTES .PP \fB-\fR The \fIbrush\fR returned should be freed by the caller using \fBDeleteObject(3w)\fR when it is no longer required. .PP \fB-\fR Windows(tm) \fB95\fR and earlier cannot create brushes from bitmaps or DIBs larger than 8x8 pixels. If a larger bitmap is given, only a portion of the bitmap is used. .SH IMPLEMENTATION .PP Declared in \fB"mfdrv/metafiledrv.h"\fR. .PP Implemented in \fB"dlls/gdi32/brush.c"\fR. .PP Debug channel \fB"gdi"\fR.