home *** CD-ROM | disk | FTP | other *** search
/ Better Windows, Better Works / CDRM93801.bin / winutil / util42 / pundit.h < prev    next >
Text File  |  1991-11-19  |  4KB  |  110 lines

  1. /*
  2.  *  Pundit.h
  3.  *      Header File for Pundit
  4.  *          Defines useful constants
  5.  *
  6.  *  Author:         Jeff Bienstadt
  7.  *
  8.  *  Environment:
  9.  *
  10.  *      Run-Time:   Microsoft Windows 3.0
  11.  *
  12.  *      Compilers/Tools:
  13.  *                  Microsoft C 6.0
  14.  *                  Microsoft Windows SDK 3.0
  15.  *
  16.  */
  17.  
  18. //#define MAX_STRING     208      // maximum string resource number
  19.  
  20. #define QUOTES_START     1
  21. #define QUOTES_COUNT    71
  22.  
  23. #define LAWS_START      72
  24. #define LAWS_COUNT     231
  25.  
  26. #define SNIGS_START    303
  27. #define SNIGS_COUNT    147
  28.  
  29. #define MISC_START     450
  30. #define MISC_COUNT      90
  31.  
  32. #define PATH_SIZE      128      // max length of a DOS path/filename
  33.  
  34. #define MAX_IN          60      // max seconds for window to show (1 minute)
  35. #define MAX_OUT       3600      // max seconds for window to hide (1 hour)
  36.  
  37. #define ID_TIMER        1       // ID for our timer
  38.  
  39. //  Menu Choice IDs
  40. #define IDM_QUOTES       1      // "Quotes"            menu choice ID
  41. #define IDM_LAWS         2      // "Laws"              menu choice ID
  42. #define IDM_SNIGS        3      // "Snigs"             menu choice ID
  43. #define IDM_MISC         4      // "Misc"              menu choice ID
  44. #define IDM_RANDOM       5      // "Random"            menu choice ID
  45. #define IDM_SETTINGS    10      // "Settings..."       menu choice ID
  46. #define IDM_ABOUT       20      // "About Pundit..."   menu choice ID
  47. #define IDM_EXIT        30      // "Exit"              menu choice ID
  48. #define IDM_COPY        40
  49. #define IDM_HIDE        50
  50. #define IDM_ICON        51
  51. #define IDM_HELP_INDEX  90
  52. #define IDM_HELP_HELP   91
  53.  
  54. //#define HELP_INDEX                      101
  55.  
  56.  
  57. // Dialog Box Control IDs
  58. #define IDC_INSCROLL    100     // IN time scroll bar
  59. #define IDC_OUTSCROLL   101     // OUT time scroll bar
  60. #define IDC_RSCROLL     102     // RED color scroll bar
  61. #define IDC_GSCROLL     103     // GREEN color scroll bar
  62. #define IDC_BSCROLL     104     // BLUE color scroll bar
  63.  
  64. #define IDC_INSECS      200     // IN seconds display box
  65. #define IDC_OUTSECS     201     // OUT seconds display box
  66. #define IDC_RED         202     // RED color display box
  67. #define IDC_GREEN       202     // GREEN color display box
  68. #define IDC_BLUE        202     // BLUE color display box
  69.  
  70. #define IDC_FORE        300     // FOREGROUND color radio button
  71. #define IDC_BACK        301     // BACKGROUND color radio button
  72.  
  73. #define IDC_DEMO        400     // Text for DEMONSTRATION of color
  74.  
  75. #define IDC_SAVE        500     // "Save Settings" button
  76.  
  77.  
  78.  
  79. //  Private Messages
  80. #define PM_START        (WM_USER+0x100) // Message to start timer
  81. #define PM_PAUSE        (WM_USER+0x101) // Message to suspend timer
  82. #define PM_DLGPAINT     (WM_USER+0x102) // Message to paint Dialog Box
  83.  
  84.  
  85. //  The structure for all the settings
  86. typedef struct _settings {
  87.     int         insecs,     // time window is shown (in seconds)
  88.                 outsecs,    // time window is gone  (in seconds)
  89.                 cat,        // text category
  90.                 hide,       // hide mode (hidden or iconized)
  91.                 x,          // X position of window (in device units)
  92.                 y,          // Y position of window (in device units)
  93.                 width,      // width of window      (in device units)
  94.                 height;     // height of window     (in device units)
  95.     DWORD       fore,       // color of foreground
  96.                 back;       // color of background
  97. } SETTINGS;
  98.  
  99.  
  100. //  Function Prototypes
  101. long FAR PASCAL     WndProc(HWND, WORD, WORD, LONG);
  102. BOOL FAR PASCAL     Settings(HWND, unsigned, WORD, LONG);
  103. BOOL FAR PASCAL     About(HWND, unsigned, WORD, LONG);
  104. void                FetchSettings(void);
  105. void                InitGlobals(HANDLE);
  106. void                BuildHelpPath(HANDLE, char *);
  107. void                NewQuote(HWND, BOOL);
  108. void                NewTitle(void);
  109.  
  110.