home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / os2sdk / os2sdk11 / tk3 / clock / readme < prev    next >
Encoding:
Text File  |  1989-02-20  |  926 b   |  18 lines

  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.
  18.