|
|
1.1 root 1: Sample: Using Region-Related API Functions
2:
3: Summary:
4:
5: The REGIONS sample demonstrates various region-related API
6: functions, and allows a user to create rectangular,
7: elliptic, and multi-polygon regions. In addition, hit-
8: testing a region and combining regions using the different
9: region-combination modes is demonstrated.
10:
11: More Information:
12:
13: When the program has started, create a region by choosing
14: one of the items in the Create submenu. At this point, items
15: in the Options submenu will be enabled, and hit-testing,
16: inversion, and other actions can be performed on the region.
17:
18: When a second region is created, items in the Combine
19: submenu will be enabled. Choosing one of these items causes
20: CombineRgn to be called with the specified combine mode, and
21: the two regions are merged into one.
22:
23: It is possible to create up to three regions at a time.
24: Items in the Options submenu always apply to the most
25: recently created (or combined) region. The Erase item
26: deletes all existing regions. Items in the Combine submenu
27: always apply to the two most recently created (or combined)
28: regions.
29:
1.1.1.2 ! root 30: Additional reference words:
1.1 root 31:
1.1.1.2 ! root 32: PtInRegion, CreateEllipticRgn, GetRgnBox, CreatePolygonRgn,
! 33: CreateRectRgn, SetRectRgn, OffsetRgn, FillRgn, FrameRgn
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.