|
|
Microsoft Windows NT Build 297 06-28-1992
Sample: PolyBezier Demonstration
Summary:
The BEZIER sample provides an easy to use demonstration of
how the PolyBezier function works. The user can place points
in the window with the left mouse button. The user can also
move these points by dragging with the same mouse button.
The PolyBezier curve is drawn dynamically to follow the
position of the new points.
More Information:
In order to use this program, press the left mouse button at
miscellaneous places in the client area. A Polyline call
shows exactly where the points were put. When there are 4,
7, 10, ..., (3n+1) points on the screen, the PolyBezier
curve is drawn with these as control points. The API itself
does not draw anything if there are some other number of
points. The whole client area may be erased by pressing the
right mouse button.
The following is a list of the Win32 API functions used in
the sample:
BeginPaint GetCapture MessageBox SelectObject
CreatePen GetDC PolyBezier SetCapture
CreateWindow GetMessage PolyLine ShowWindow
DeleteObject GetStockObjec PostQuitMessa TranslateMessa
t ge ge
DispatchMessa InvalidateRec PtInRect UpdateWindow
ge t
EndPaint LoadCursor Rectangle
LoadIcon ReleaseDC
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.