How to Use FillPolygonRgn API to Fill Shape in Visual Basic (81470)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q81470 SUMMARY
Microsoft Visual Basic versions 2.0 and later for Windows include the
Shape control which can be used for creating and filling six different
geometric shapes. Alternatively, you can create a polygon region on a
form or picture and fill it with a color, using the CreatePolygonRgn
and FillRgn Windows API calls to draw and fill areas of the screen
with color. Geometric shapes not provided with the Shape control,
such as a triangle, can be created using this method.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB81470 |
---|
|