Declare Function GetPolyFillMode Lib "gdi32.dll" (ByVal hdc As Long) As Long
Platforms: Win 32s, Win 95/98, Win NT
GetPolyFillMode determines how a given device fills polygonal areas and shapes. These two modes only differ in how they handle complex overlapping polygons (i.e., polygons whose boundaries criss-cross themselves). The function returns 0 if an error occured, or exactly one of the following flags if successful:
Example:
' Display the current polygon fill mode of window Form1. Dim fillmode As Long ' receives fill mode fillmode = GetPolyFillMode(Form1.hDC) ' get the polygon fill mode If fillmode = ALTERNATE Then Debug.Print "Form1 currently uses alternating filling." Else Debug.Print "Form1 currently uses winding filling." End If
See Also: SetPolyFillMode
Category: Regions
Back to the index.
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information.
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/g/getpolyfillmode.html