home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / OS2 / QUEUES / CLIQMAIN.H < prev    next >
Text File  |  1994-11-17  |  4KB  |  97 lines

  1. /*==============================================================*\
  2.  *
  3.  *  cliqmain.h - sample queue application main header file
  4.  *      Copyright 1991, IBM Corp.
  5.  *
  6.  *--------------------------------------------------------------
  7.  *
  8.  *  This header file contains the application wide constants.
  9.  *
  10. \*==============================================================*/
  11.  
  12. #define IDR_MAIN       1      /* resource identifier */
  13.  
  14. /*--------------------------------------------------------------*\
  15.  *  Standard Dialog box ids
  16. \*--------------------------------------------------------------*/
  17. #define MSGBOXID        1001
  18.  
  19. /* WINDOW IDS */
  20. #define  WID_CLIENT     101
  21. #define  WID_Q_MSG      102
  22. #define  WID_Q_PRIORITY 103
  23. #define  WID_DAY        104
  24. #define  WID_MONTH      105
  25. #define  WID_YEAR       106
  26. #define  WID_SEND_MSG   107
  27. #define  WID_SEND_DATE  108
  28.  
  29. /*--------------------------------------------------------------*\
  30.  *  Menu item ids
  31. \*--------------------------------------------------------------*/
  32. #define IDM_FILE                            1000
  33. #define IDM_FILEEXIT                        1800
  34.  
  35. #define IDM_HELP                            9000
  36. #define IDM_HELPHELPFORHELP                 9100
  37. #define IDM_HELPEXTENDED                    9200
  38. #define IDM_HELPKEYS                        9300
  39. #define IDM_HELPINDEX                       9400
  40. #define IDM_HELPTUTORIAL                    9500
  41. #define IDM_HELPABOUT                       9600
  42.  
  43. #define IDM_OPTION                          3000
  44. #define IDM_OPTIONPURGE                     3100
  45.  
  46. /*--------------------------------------------------------------*\
  47.  *  Dialog item ids
  48. \*--------------------------------------------------------------*/
  49. #define ID_OK               1
  50. #define ID_CANCEL           2
  51.  
  52. /*--------------------------------------------------------------*\
  53.  *  Stringtable ids
  54. \*--------------------------------------------------------------*/
  55. #define IDS_APPNAME                 2
  56. #define IDS_HELPLIBRARYNAME         3
  57. #define IDS_HELPWINDOWTITLE         6
  58. #define IDS_TITLEBARSEPARATOR      10
  59.  
  60. /*--------------------------------------------------------------*\
  61.  *  Messagetable ids
  62. \*--------------------------------------------------------------*/
  63. #define IDMSG_INITFAILED                1
  64. #define IDMSG_MAINWINCREATEFAILED       2
  65. #define IDMSG_HELPLOADERROR             3
  66. #define IDMSG_CANNOTLOADSTRING          4
  67. #define IDMSG_HELPDISPLAYERROR          5
  68.  
  69. #define IDMSG_SVR_DOWN                  6
  70. #define IDMSG_SEM_ERR                   7
  71. #define IDMSG_Q_ERR                     8
  72. #define IDMSG_MEM_ERR                   9
  73. #define IDMSG_SEM_TIMEOUT              10
  74. #define IDMSG_MEM_FULL                 11
  75. #define IDMSG_GIVE_MEM_ERR             12
  76. #define IDMSG_SUBALLOC_MEM_ERR         13
  77.  
  78. /*--------------------------------------------------------------*\
  79.  *  Ids of messages used between threads
  80. \*--------------------------------------------------------------*/
  81.  
  82. #define WM_MSG                              WM_USER+0
  83.  
  84. /*--------------------------------------------------------------*\
  85.  *  Other constants
  86. \*--------------------------------------------------------------*/
  87. #define TITLE_LEN           50
  88. #define TITLESEPARATORLEN   4
  89. #define MESSAGE_LEN  256          /* maximum length for messages */
  90. #define MAX_MESSAGES 250
  91.  
  92. /* return values for initialization routines */
  93. #define RETURN_SUCCESS      0   /* successful return in DosExit */
  94. #define RETURN_ERROR        1   /* error return in DosExit */
  95. #define BEEP_WARN_FREQ      60  /* frequency of warning beep */
  96. #define BEEP_WARN_DUR      100  /* duration of warning beep */
  97.