Windows API Guide: GetDiskFreeSpace Function


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:

ALTERNATE = 1
The device alternates between filling and not filling contiguous sections whose boundaries are determined by the edge(s) of the polygon crossing through the polygon's interior.
WINDING = 2
Any section inside the polygon is filled, regardless of any intra-polygonal boundaries and edges.
hdc
A device context to the device to find the polygon filling mode of.

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



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net