A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



SetPolyFillMode

The SetPolyFillMode function sets the polygon fill mode for functions that fill polygons.

VB4-32,5,6
Declare Function SetPolyFillMode Lib "gdi32" (ByVal hdc As Long, ByVal nPolyFillMode As Long) As Long

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

Library
Gdi32

Parameter Information
- hdc
Identifies the device context.

- iPolyFillMode
Specifies the new fill mode. This parameter can be either of the following values:
ALTERNATE
Selects alternate mode (fills the area between odd-numbered and even-numbered polygon sides on each scan line).
WINDING
Selects winding mode (fills any region with a nonzero winding value).

Return Values
The return value specifies the previous filling mode. If an error occurs, the return value is zero.

Last update: 07 April 2006