|
|
1.1 ! root 1: Comments about CLOCK ! 2: ! 3: The program illustrates various Gpi calls. It starts a timer ! 4: which sends it WM_TIMER messages once per second. DosGetDateTime ! 5: returns the system time. The various graphical parts of the clock ! 6: face (face, hour hand, minute hand, second hand, major ticks, minor ! 7: ticks), are each drawn by setting the model transform and then ! 8: drawing the part in an unchanging location in world space. Once per ! 9: minute, the clock is drawn from scratch. The second hand is drawn ! 10: in XOR mode, so it can be redrawn in its old location (effectively ! 11: erasing it) and then drawn in its new location, without requiring ! 12: that the whole clock be redrawn. ! 13: ! 14: Under "Preferences", if you select "Hide Frame Controls", all windows ! 15: but the client window and the size border disappear. You can ! 16: restore them by double-clicking on the clock window, or by typing ! 17: any keyboard character when the clock window has the focus.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.