home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gpiimage.zip / IMG_MAIN.H < prev    next >
Text File  |  1998-04-20  |  4KB  |  109 lines

  1. /*static char *SCCSID = "@(#)img_main.h    6.6 92/02/10";*/
  2. /**************************************************************************
  3.  *  File name  :  img_main.h
  4.  *
  5.  *  Description:  This header file contains the application wide constants
  6.  *                and structure definitions.
  7.  *
  8.  *  Concepts   :  menu items, string table, message table
  9.  *
  10.  *  API's      :  [none]
  11.  *
  12.  *  Required
  13.  *    Files    :  [none]
  14.  *
  15.  *  Copyright (C) 1991 IBM Corporation
  16.  *
  17.  *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  18.  *      sample code created by IBM Corporation. This sample code is not
  19.  *      part of any standard or IBM product and is provided to you solely
  20.  *      for  the purpose of assisting you in the development of your
  21.  *      applications.  The code is provided "AS IS", without
  22.  *      warranty of any kind.  IBM shall not be liable for any damages
  23.  *      arising out of your use of the sample code, even if they have been
  24.  *      advised of the possibility of such damages.                                                    *
  25.  *************************************************************************/
  26. #define IDR_MAIN                      1  /* resource identifier */
  27. #define MSGBOXID                   1001       /* message box id */
  28.  
  29. /*
  30.  *  Standard Dialog box ids
  31.  */
  32. #define FILEOPEN        2000
  33. #define FILESAVE        2001
  34.  
  35. /*
  36.  *  Menu item ids
  37.  */
  38. #define IDM_FILE                   1000
  39. #define IDM_FILEOPEN               1100
  40. #define IDM_FILEEXIT               1200
  41.  
  42. #define IDM_VIEW                   2000
  43. #define IDM_VIEWDETAIL             2100
  44. #define IDM_VIEWFOREGROUNDCOLOR    2200
  45. #define IDM_VIEWFORECOLORBLACK     2301
  46. #define IDM_VIEWFORECOLORWHITE     2302
  47. #define IDM_VIEWFORECOLORBLUE      2303
  48. #define IDM_VIEWFORECOLORGREEN     2304
  49. #define IDM_VIEWFORECOLORYELLOW    2305
  50. #define IDM_VIEWFORECOLORRED       2306
  51. #define IDM_VIEWBACKCOLORBLACK     2307
  52. #define IDM_VIEWBACKCOLORWHITE     2308
  53. #define IDM_VIEWBACKCOLORBLUE      2309
  54. #define IDM_VIEWBACKCOLORGREEN     2310
  55. #define IDM_VIEWBACKCOLORYELLOW    2311
  56. #define IDM_VIEWBACKCOLORRED       2312
  57. #define IDM_VIEWBACKGROUNDCOLOR    2400
  58. #define IDM_VIEWSAVEPOSITION       2500
  59. #define IDM_VIEWRESTOREPOSITION    2600
  60.  
  61. #define IDM_HELP                   9000
  62. #define IDM_HELPUSINGHELP          9100
  63. #define IDM_HELPGENERAL            9200
  64. #define IDM_HELPKEYS               9300
  65. #define IDM_HELPINDEX              9400
  66. #define IDM_HELPPRODUCTINFO        9500
  67.  
  68. /*
  69.  *  String table ids
  70.  */
  71. #define IDS_APPNAME                   1
  72. #define IDS_FILEOPENEXTENSION         2
  73. #define IDS_HELPLIBRARYNAME           3
  74. #define IDS_OPEN                      4
  75. #define IDS_HELPWINDOWTITLE           5
  76. #define IDS_UNTITLED                  6
  77. #define IDS_TITLEBARSEPARATOR         7
  78.  
  79. /*
  80.  *  Message table ids
  81.  */
  82. #define IDMSG_INITFAILED             10
  83. #define IDMSG_MAINWINCREATEFAILED    20
  84. #define IDMSG_CANNOTOPENINPUTFILE    30
  85. #define IDMSG_OUTOFMEMORY            40
  86. #define IDMSG_BACKEQFORE             50
  87. #define IDMSG_LOADERROR              60
  88. #define IDMSG_HELPLOADERROR          70
  89. #define IDMSG_CANNOTLOADSTRING       80
  90. #define IDMSG_CANNOTRUNFILEOPEN      90
  91. #define IDMSG_HELPDISPLAYERROR      100
  92. #define IDMSG_CANNOTLOADEXITLIST    110
  93. #define IDMSG_HELPMANAGERERROR      120
  94. #define IDMSG_WARNING               130
  95.  
  96. /*
  97.  *  Other constants
  98.  */
  99. #define MESSAGELEN         80   /* maximum length for messages  */
  100. #define TITLESEPARATORLEN   4   /* title seperator length       */
  101. #define CCHAPPNAME         15                  /* sizeof(Image) */
  102. #define COLOR_BASE IDM_VIEWFORECOLORBLACK         /* color base */
  103. #define COLOR_COUNT         6    /* number of color selections  */
  104. #define CCHFILETITLE       10    /* sizeof(Filename: )          */
  105. #define VERTSCROLL          1    /* vertical scroll identifier  */
  106. #define HORZSCROLL          2   /* horizontal scroll identifier */
  107. #define LINESCROLL         10           /* no of pels to scroll */
  108. /***************************  End of img_main.h  *************************/
  109.