Prev Index Next

Rand Rect

Random Rectangles

Random Rectangles

Notes: This program repeatedly draws new rectangles using randomly generated values for the position, size, and colour of the rectangles. The rectangles are not being drawn by the window procedure but rather as part of the message loop if there are no messages present in the queue. This ensures that new rectangles are drawn repeatedly.

Prev Index Next