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
Related Call: SetPolyFillMode
Category: Regions
Back to the index.