Wine, WineLib and "Programming Windows 95"





2.5.1. Chapter 6 - capture1

Last updated: 2001/2/26

Description

Press the left mouse button and drag the mouse to draw a black rectangle. Do it again, the first rectangle is erased and a new one is drawn. Resizing the window has no effect on the rectangle (make the window smaller than the rectangle and then bigger and you will still have your original rectangle).

Note that if you exit the client area and release the mouse button, capture1 still believes that the mouse button is pressed when you get back into the client area. With a mouse click it will be ok again.

Wine tests

Winelib tests

Tested API

2.5.2. Chapter 6 - capture2

Last updated: 2003/5/4

Description

Same as capture1 except that this time if you exit the client area the program will continue tracking the mouse.

Wine tests

Winelib tests

Tested API

2.5.3. Chapter 6 - checker1

Last updated: 2003/5/4

Description

The program divides the window in a checkboard of 25 cells. A click on a cell will display a cross in it and a second click will erase that cross.

When the window is resized the cells are resized accordingly and keep the checked/not checked status. You may see a small variable border around the cells. That's because of rounding errors made by the program.

Wine tests

Winelib tests

Tested API

2.5.4. Chapter 6 - checker2

Last updated: 2003/5/4

Description

Same as checker1 but with an additional keyboard mode. You can move the mouse pointer with the arrow keys, home and end move it respectively to the top left and bottom right corners and you can use space and enter to toggle a cell's status.

Wine tests

Winelib tests

Tested API

2.5.5. Chapter 6 - checker3

Last updated: 2003/5/4

Description

Same as checker1 but implemented using child windows. Note that this version does not have the keyboard interface of checker2.

Wine tests

Winelib tests

Tested API

2.5.6. Chapter 6 - connect

Last updated: 2001/2/26

Description

Connect tracks the mouse movements recording each point's coordinates as long as the left mouse button is depressed. Then it connects each point to all the other points.

If you are outside the client area when you release the mouse button then connect does not do anything. Also if you do the above while it is still drawing the lines nothing happens. To try this move the mouse for some time before releasing the button, connect remembers up to 1000 points which gives it 500,000 lines to draw. But if you release the button after it has finished drawing the lines, then that part of the mouse movements will be taken into account.

Wine tests

Winelib tests

Tested API

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