AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

CreateHatchBrush

The CreateHatchBrush function creates a logical brush that has the specified hatch pattern and color.

VB4-32,5,6
Declare Function CreateHatchBrush Lib "gdi32" Alias "CreateHatchBrush" (ByVal nIndex As Long, ByVal crColor As Long) As Long

VB.NET
System.Drawing.Brush

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
fnStyle
Specifies the hatch style of the brush. This parameter can be any one of the following values:
HS_BDIAGONAL
45-degree downward left-to-right hatch
HS_CROSS
Horizontal and vertical crosshatch
HS_DIAGCROSS
45-degree crosshatch
HS_FDIAGONAL
45-degree upward left-to-right hatch
HS_HORIZONTAL
Horizontal hatch
HS_VERTICAL
Vertical hatch

clrref
Specifies the foreground color of the brush that is used for the hatches.

Return Values
If the function succeeds, the return value identifies a logical brush.

If the function fails, the return value is NULL.

Examples

Related Functions

VB.NET Example

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/