Wine, WineLib and "Programming Windows 95"





2.3.1. Chapter 4 - bezier

Last updated: 2003/5/4

Description

Display a bezier curb. The two endpoints are kind of in the middle of the window and when you click and move the mouse you move the endpoint's tangent and its weight. The left button affects the left endpoint and the right mouse button affects the right endpoint. If the mouse moves outside the window its movements are ignored. If the window is resized the bezier curve returns to its default configuration.

Wine tests

Winelib tests

Tested API

2.3.2. Chapter 4 - clover

Last updated: 2003/5/4

Description

Draws a clover occupying the whole surface of the window with lines starting from its center.

Wine tests

Winelib tests

Tested API

2.3.3. Chapter 4 - devcaps1

Last updated: 2003/5/4

Description

Prints out the characteristics of the screen device. This is the equivalent of sysmets1 (no scrollbar).

Wine tests

Winelib tests

Tested API

2.3.4. Chapter 4 - emf1

Last updated: 2001/4/1

Description

Displays a crossed rectangle at the center of the window using the metafile functionality. Note that the cross does not quite fit the top and bottom right corners of the rectangle.

Wine tests

Winelib tests

Tested API

2.3.5. Chapter 4 - emf2

Last updated: 2003/5/4

Description

Same as emf1 except that the metafile is saved on disk in the 'emf2.emf' file, and then read from there.

Wine tests

Winelib tests

Tested API

2.3.6. Chapter 4 - endjoin

Last updated: 2003/5/4

Description

This example draws three 'V' formed of two segments each. For doing so it uses BeginPath, EndPath and StrokePath so that the joint between the two segments is drawm according to specific rules. The first 'V' has round ends and a round joint, other two have 'square' ends and respectively a flat joint and a sharp joint. See the screenshot for more details.

Wine tests

Winelib tests

Tested API

2.3.7. Chapter 4 - justify1

Last updated: 2003/5/4

Description

Displays a text of Balzac (in the French edition) with a ruler on top and on the left. The text is justified. There is no scrollbar.

Wine tests

Winelib tests

Tested API

2.3.8. Chapter 4 - linedemo

Last updated: 2003/5/4

Description

Draws a rectangle, an inscribed ellipse, another nested rectangle with round corners this time, and diagonals stopping on the ellipse.

Wine tests

Winelib tests

Tested API

2.3.9. Chapter 4 - metafile

Last updated: 2003/5/4

Description

Displays a 10x10 array of rectangles containing a blue ellipse with diagonals stopping on the ellipse.

Wine tests

Winelib tests

Tested API

2.3.10. Chapter 4 - randrect

Last updated: 2000/12/2

Description

Displays random rectangles of random colors (they seem to be taken from the Windows palette though) and sizes. When one moves the window around or resizes it the display is suspended and restarts after the operation is finished.

Wine tests

Winelib tests

Tested API

2.3.11. Chapter 4 - scramble

Last updated: 2003/5/4

Description

Divides the screen (yes, the screen, not the window) in a 10x10 array of rectangles. Then it performs 200 random swaps of the cells and again 200 reverse swaps. So the screen should be back as it was initially when the program stops.

Wine tests

Winelib tests

Tested API

2.3.12. Chapter 4 - sinewave

Last updated: 2003/5/4

Description

Draws the first period of a sinusoid.

Wine tests

Winelib tests

Tested API

2.3.13. Chapter 4 - whatsize

Last updated: 2001/2/28

Description

Displays various metrics about the window.

Wine tests

Winelib tests

Tested API

fgouget@free.fr This page is hosted for free by Free.fr