|
|
1.1 root 1: Sample: PolyBezier Demonstration
2:
3: Summary:
4:
5: The BEZIER sample provides an easy to use demonstration of
6: how the PolyBezier function works. The user can place points
7: in the window with the left mouse button. The user can also
8: move these points by dragging with the same mouse button.
9: The PolyBezier curve is drawn dynamically to follow the
10: position of the new points.
11:
12: More Information:
13:
14: In order to use this program, press the left mouse button at
15: miscellaneous places in the client area. A Polyline call
16: shows exactly where the points were put. When there are 4,
17: 7, 10, ..., (3n+1) points on the screen, the PolyBezier
18: curve is drawn with these as control points. The API itself
19: does not draw anything if there are some other number of
20: points. The whole client area may be erased by pressing the
21: right mouse button.
22:
23: The following is a list of the Win32 API functions used in
24: the sample:
25:
26: BeginPaint GetCapture MessageBox SelectObject
27: CreatePen GetDC PolyBezier SetCapture
28: CreateWindow GetMessage PolyLine ShowWindow
29: DeleteObject GetStockObjec PostQuitMessa TranslateMessa
30: t ge ge
31: DispatchMessa InvalidateRec PtInRect UpdateWindow
32: ge t
33: EndPaint LoadCursor Rectangle
34: LoadIcon ReleaseDC
35:
36:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.