MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/local/ssl/share/doc/libwmf-devel-0.2.8.4/caolan/CreateBrushIndirect.html
<head>
<title>META_CREATEBRUSHINDIRECT</title>
</head>
<body link="#CC0000" alink="#FF3300" vlink="#330099" text="#000000" bgcolor="#ffffff" background="pics/weave.jpg">
<h1>NAME</h1>
META_CREATEBRUSHINDIRECT
<h1>NEAREST API CALL</h1>
<pre>#include &lt;windows.h&gt;
HBRUSH32 CreateBrushIndirect(const LOGBRUSH32 *brush);

typedef struct tagLOGBRUSH
{
	UINT        lbStyle;
	COLORREF    lbColor;
	LONG        lbHatch;
} LOGBRUSH;
</pre>
<h1>DESCRIPTION</h1>
<TABLE BORDER >
<TR>
<TD>U16</TD>

<TD>Value</TD>
</TR>
<TR>
<TD>0</TD>
<TD>lbStyle</TD>
</TR>
<TR>
<TD>1</TD>
<TD rowspan=2>lbColor</TD>
</TR>
<TR>
<TD>2</TD>
</TR>
<TR>
<TD>3</TD>
<TD>lbHatch</TD>
</TR>
</TABLE>

lbColor is the color of the brush, lbStyle can be one of
BS_SOLID,BS_NULL & BS_HATCHED, there are others, but i dont think they can
show up in metafiles<p>
if lbStyle is not hatched then lbHatch is ignored, otherwise lbHatch is one
of
HS_HORIZONTAL,
HS_VERTICAL,  
HS_FDIAGONAL, 
HS_BDIAGONAL, 
HS_CROSS,   
HS_DIAGCROSS. See the source for details of these.<p>
This operation adds an entry for itself in the object list.



<p><a href="support.html">back</a><p>
</body>