home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / d / d020_1_4 / 5.ddi / CLOCK / CLOCK.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-01  |  2.2 KB  |  53 lines

  1. /****************************************************************************
  2.  *                                        *
  3.  *  FILE    : Clock.h                                                   *
  4.  *                                        *
  5.  *  DESCRIPTION : Header file for the Clock sample application.             *
  6.  *                                        *
  7.  ****************************************************************************/
  8.  
  9. #define BUFLEN        30 /* name buffer length */
  10.  
  11. #define MAXDOTWIDTH   25 /* maximum hour-marking dot width  */
  12. #define MINDOTWIDTH   2  /* minimum hour-marking dot width  */
  13. #define MINDOTHEIGHT  1  /* minimum hour-marking dot height */
  14.  
  15. /* Defines for menu items */
  16. #define IDM_ABOUT     1001
  17. #define IDS_ABOUTMENU 1
  18. #define IDS_APPNAME   2
  19. #define IDS_DATA      3
  20. #define IDS_TOOMANY   4
  21.  
  22. /* hand and paint flags */
  23. #define HHAND         TRUE
  24. #define MHAND         FALSE
  25. #define PAINTALL      0
  26. #define HANDPAINT     1
  27.  
  28. /* timer interval when the clock window is ...            */
  29. #define OPEN_TLEN     450    /* ... open   (every second) */
  30. #define ICON_TLEN     59000  /* ... iconic (every minute) */
  31.  
  32. /* distance from the center of the clock to ...                 */
  33. #define HOURSIDE      7   /* ... either side of the hour hand   */
  34. #define MINUTESIDE    5   /* ... either side of the minute hand */
  35. #define HOURTIP       65  /* ... the tip of the hour hand       */
  36. #define MINUTETIP     80  /* ... the tip of the minute hand     */
  37. #define SECONDTIP     80  /* ... the tip of the second hand     */
  38. #define HOURTAIL      15  /* ... the tail of the hour hand      */
  39. #define MINUTETAIL    20  /* ... the tail of the minute hand    */
  40.  
  41. /* conversion factors */
  42. #define CIRTABSCALE   8000 /* circle table values scale down value  */
  43. #define MMPERDM       100  /* millimeters per decimeter             */
  44.  
  45. /* number of hand positions on ...                                     */
  46. #define HANDPOSITIONS 60                   /* ... entire clock         */
  47. #define SIDESHIFT     (HANDPOSITIONS >> 2) /* ...  90 degrees of clock */
  48. #define TAILSHIFT     (HANDPOSITIONS >> 1) /* ... 180 degrees of clock */
  49.  
  50. /* declarations for exported functions */
  51. long FAR PASCAL ClockWndProc(HWND, unsigned, WORD, LONG);
  52. BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);
  53.