home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 7.ddi / MWHC.007 / 77 < prev    next >
Encoding:
Text File  |  1991-08-21  |  2.2 KB  |  54 lines

  1. /****************************************************************************
  2.  *                                        *
  3.  *  FILE    : Clock.h                                                   *
  4.  *                                        *
  5.  *  DESCRIPTION : Header file for the Clock sample application.             *
  6.  *                                        *
  7.  ****************************************************************************/
  8.  
  9. #define BUFLEN        64 /* 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. #define IDS_APPCLASS    5
  22.  
  23. /* hand and paint flags */
  24. #define HHAND         TRUE
  25. #define MHAND         FALSE
  26. #define PAINTALL      0
  27. #define HANDPAINT     1
  28.  
  29. /* timer interval when the clock window is ...            */
  30. #define OPEN_TLEN     450    /* ... open   (every second) */
  31. #define ICON_TLEN     59000  /* ... iconic (every minute) */
  32.  
  33. /* distance from the center of the clock to ...                 */
  34. #define HOURSIDE      7   /* ... either side of the hour hand   */
  35. #define MINUTESIDE    5   /* ... either side of the minute hand */
  36. #define HOURTIP       65  /* ... the tip of the hour hand       */
  37. #define MINUTETIP     80  /* ... the tip of the minute hand     */
  38. #define SECONDTIP     80  /* ... the tip of the second hand     */
  39. #define HOURTAIL      15  /* ... the tail of the hour hand      */
  40. #define MINUTETAIL    20  /* ... the tail of the minute hand    */
  41.  
  42. /* conversion factors */
  43. #define CIRTABSCALE   8000 /* circle table values scale down value  */
  44. #define MMPERDM       100  /* millimeters per decimeter             */
  45.  
  46. /* number of hand positions on ...                                     */
  47. #define HANDPOSITIONS 60                   /* ... entire clock         */
  48. #define SIDESHIFT     (HANDPOSITIONS >> 2) /* ...  90 degrees of clock */
  49. #define TAILSHIFT     (HANDPOSITIONS >> 1) /* ... 180 degrees of clock */
  50.  
  51. /* declarations for exported functions */
  52. long FAR PASCAL ClockWndProc(HWND, WORD, WORD, LONG);
  53. BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);
  54.