SAMPLE: PATHS - Sample Application

PSS ID Number: Q103349
Article last modified on 08-24-1993

3.10
WINDOWS

----------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Windows Software Development Kit (SDK) for Windows
   version 3.1
----------------------------------------------------------------------

PATHS: Uses Paths for Drawing, Filling, and Clipping
The PATHS sample demonstrates the use of paths for drawing, filling,
and clipping. The program draws six different figures in the window
and labels each one. Each figure is based on the same path recreated
six times. The six figures are the result of calling the following
Microsoft Windows functions (the poly fill mode is indicated in
parentheses):
 - StrokePath
 - FillPath
 - StrokeAndFill(Winding)
 - StrokeAndFill(Alternate)
 - SelectClipPath(Winding)
 - SelectClipPath(Alternate)
The Microsoft Windows NT version 3.1 operating system was not
available at the time this sample was acquired for the Microsoft
Developer Network CD. For this reason, the CD includes only the source
files for the sample, not the executable file or any DLLs. If you have
Windows NT version 3.1 installed on your system, you may copy the
source files to your hard drive and invoke the Windows NT make file to
build the sample.
KEYWORDS: CD4; AngleArc; BeginPaint; BeginPath; CopyRect; CreatePen;
CreateWindow; DeleteObject; DispatchMessage; Ellipse; EndPaint;
EndPath; FillPath; GetClientRect; GetMessage; GetStockObject;
InflateRect; LoadCursor; LoadIcon; MoveToEx; PathToRegion;
PostQuitMessageTextOut; Rectangle; SelectClipRgn; SelectObject;
SetBkMode; SetPolyFillMode; SetViewportOrgEx; ShowWindow;
StrokeAndFillPath; StrokePath; TranslateMessage; UpdateWindow
For Microsoft OnLine customers, PATHS is available in the
Software/Data Library as 4X78.ZIP and can be found by searching on the
word PATHS, the Q number of this article, or S14280. For CompuServe
Customers, PATHS can be downloaded from the file 4-78.ZIP in library
section number 4 of the MSDNLIB forum. PATHS was archived using the
PKware file-compression utility.

Additional reference words: 3.10 polyfill
KBCategory:
KBSubcategory:
Copyright Microsoft Corporation 1993.