|
|
1.1 root 1: Sample: PolyDraw Function Demonstration
2:
3: Summary:
4:
5: The POLYDRAW SDK sample provides an easy-to-use
6: demonstration of how the PolyDraw Win32 API function works.
7: The user can place points in the window with the left mouse
8: button, and move these points by dragging with the same
9: mouse button. The PolyDraw curve is drawn dynamically to
10: follow the position of the new points.
11:
12: More Information:
13:
14: To use this program, click the left mouse button at
15: miscellaneous places in the client area. A Polyline call
16: shows exactly where the points were put. By default, the
17: type entered into the type array is PT_LINETO. This can be
18: changed to a PT_MOVETO type by holding down the SHIFT key.
19: It can be changed to a PT_BEZIERTO type by holding down the
20: CTRL key. The resulting purple curve shows the results.
21: There will be no curve when the bezier points do not come in
22: groups of 4, 7, ... , (3n+1).
23:
24: The following is a list of the Win32 API functions used in
25: this sample:
26:
27: BeginPaint GetDC MoveToEx SetBkMode
28: CreatePen GetMessage PolyDraw SetCapture
29: CreateWindow GetStockObject PolyLine ShowWindow
30: DeleteObject GetSystemMetrics PostQuitMessage TextOut
31: DispatchMessage InvalidateRect PtInRect TranslateMessage
32: EndPaint LoadCursor Rectangle UpdateWindow
33: GetCapture LoadIcon ReleaseDC
34: GetClientRect MessageBox SelectObject
35:
36:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.