home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / startapp.zip / MAIN.H < prev    next >
Text File  |  1998-09-10  |  4KB  |  124 lines

  1. /**************************************************************************
  2.  *  File name  :  main.h
  3.  *
  4.  *  Description:  This header file contains the application wide
  5.  *                constants and structure definitions.
  6.  *
  7.  *  Concepts   :  [none]
  8.  *
  9.  *  API's      :  [none]
  10.  *
  11.  *  Required
  12.  *    Files    :  [none]
  13.  *
  14.  *  (c) Copyright IBM Corp. 1991, 1998  All rights reserved.
  15.  *
  16.  *  These sample programs are owned by International Business Machines
  17.  *  Corporation or one of its subsidiaries ("IBM") and are copyrighted and
  18.  *  licensed, not sold.
  19.  *
  20.  *  You may copy, modify, and distribute these sample programs in any
  21.  *  form without payment to IBM, for any purpose including developing,
  22.  *  using, marketing or distributing programs that include or are
  23.  *  derivative works of the sample programs.
  24.  *
  25.  *  The sample programs are provided to you on an "AS IS" basis, without
  26.  *  warranty of any kind.  IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES,
  27.  *  EITHER EXPRESS OR IMPLIED, INCLUDING , BUT NOT LIMITED TO, THE IMPLIED
  28.  *  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  29.  *  Some jurisdictions do not allow for the exclusion or limitation of
  30.  *  implied warranties, so the above limitations or exclusions may not
  31.  *  apply to you.  IBM shall not be liable for any damages you suffer
  32.  *  as a result of using, modifying or distributing the sample programs
  33.  *  or their derivatives.
  34.  *************************************************************************/
  35.  
  36. #define IDR_MAIN       1      /* resource identifier */
  37.  
  38. /*
  39.  *  Standard Dialog box ids
  40.  */
  41.  
  42. #define MSGBOXID        1001
  43. #define OBJECTID        1002
  44.  
  45. /*
  46.  *  Menu item ids
  47.  */
  48. #define IDM_CTRL                            3000
  49. #define IDM_STARTDATA                       3100
  50. #define IDM_LASTPMERR                       3200
  51.  
  52. #define IDM_START                           4000
  53. #define IDM_TERMIN8                         5000
  54.  
  55. #define IDM_HELP                            9000
  56. #define IDM_HELPUSINGHELP                   9100
  57. #define IDM_HELPGENERAL                     9200
  58. #define IDM_HELPKEYS                        9300
  59. #define IDM_HELPINDEX                       9400
  60. #define IDM_HELPTUTORIAL                    9500
  61. #define IDM_HELPPRODUCTINFO                 9600
  62.  
  63. /*
  64.  *  Dialog item ids
  65.  */
  66. #define ID_OK               1
  67. #define ID_CANCEL           2
  68.  
  69. /*  Other Controls                  */
  70. #define WINDOW_LISTBOX                      1000
  71. /*
  72.  *  Stringtable ids
  73.  */
  74. #define IDS_FILEOPENEXT             1
  75. #define IDS_APPNAME                 2
  76. #define IDS_HELPLIBRARYNAME         3
  77. #define IDS_OPEN                    4
  78. #define IDS_HELPWINDOWTITLE         5
  79. #define IDS_SAVE                    6
  80. #define IDS_UNTITLED                7
  81. #define IDS_TITLEBARSEPARATOR       8
  82. #define IDS_OBJECTCLASS             9
  83.  
  84. /*
  85.  *  Messagetable ids
  86.  */
  87. #define IDMSG_INITFAILED                1
  88. #define IDMSG_MAINWINCREATEFAILED       2
  89. #define IDMSG_CANNOTOPENINPUTFILE       3
  90. #define IDMSG_CANNOTOPENOUTPUTFILE      4
  91. #define IDMSG_CANNOTRUNCOLOR            8
  92. #define IDMSG_CANNOTGETHPS              9
  93. #define IDMSG_HELPLOADERROR            10
  94. #define IDMSG_CANNOTLOADSTRING         11
  95. #define IDMSG_CANNOTOPENPRINTER        12
  96. #define IDMSG_HELPDISPLAYERROR         13
  97. #define IDMSG_CANNOTLOADEXITLIST       14
  98. #define IDMSG_PRINTINITFAILED          15
  99. #define IDMSG_OVERWRITEFILE            16
  100. #define IDMSG_PRINTERROR               17
  101. #define IDMSG_UNDOFAILED               18
  102. #define IDMSG_CANNOTGETFILEINFO        19
  103. #define IDMSG_CANNOTALLOCATEMEMORY     20
  104. #define IDMSG_CANNOTREADFILE           21
  105. #define IDMSG_CANNOTWRITETOFILE        22
  106. #define IDMSG_CANNOTLOADFONTS          23
  107. #define IDMSG_CANNOTGETPAGEINFO        24
  108. #define IDMSG_YOURTUTORIAL             25
  109.  
  110. /*
  111.  *  Other constants
  112.  */
  113. #define MESSAGELEN          50    /* maximum length for messages */
  114. #define TITLESEPARATORLEN   4
  115. #define ID_ICON1            999
  116.  
  117. /* return values for initialization routines */
  118. #define RETURN_SUCCESS      0   /* successful return in DosExit */
  119. #define RETURN_ERROR        1   /* error return in DosExit */
  120. #define BEEP_WARN_FREQ      60  /* frequency of warning beep */
  121. #define BEEP_WARN_DUR      100  /* duration of warning beep */
  122.  
  123. /***************************  End of main.h  ****************************/
  124.