home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / HELLO5 / AHELLOW5.H < prev    next >
C/C++ Source or Header  |  1995-05-01  |  6KB  |  87 lines

  1. #ifndef AHELLOWINDOW_H
  2. #define AHELLOWINDOW_H
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 5: Symbolic Definitions (ahellow5.h)  */
  5. /*                                                                            */
  6. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1995. */
  7. /*                                                                            */
  8. /* DISCLAIMER OF WARRANTIES:                                                  */
  9. /*   The following [enclosed] code is sample code created by IBM              */
  10. /*   Corporation.  This sample code is not part of any standard IBM product   */
  11. /*   and is provided to you solely for the purpose of assisting you in the    */
  12. /*   development of your applications.  The code is provided "AS IS",         */
  13. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  14. /*   arising out of your use of the sample code, even if they have been       */
  15. /*   advised of the possibility of such damages.                              */
  16. /******************************************************************************/
  17. // NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  18. //**************************************************************************
  19. // window ids - used by IWindow constructors (eg IStaticText, AHelloWindow)*
  20. //**************************************************************************
  21. #define WND_MAIN         0x1000         //Main window window ID               V1
  22.  
  23. #define WND_HELLO        0x1010         //Hello World window ID               V1
  24. #define WND_INFO         0x1012         //Information area window ID          V2
  25. #define WND_STATUS       0x1011         //Status line window ID               V3
  26. #define WND_TEXTDIALOG   0x1013         //Text dialog window ID               V4
  27. #define WND_EARTH        0x1014         //Earth window window ID              V5
  28. #define WND_CANVAS       0x8008         //Hello World client window ID        V5
  29. #define WND_MCCANVAS     0x8008         //Text dialog client window ID        V4
  30. #define WND_STCANVAS     0x1015         //Text dialog set canvas window ID    V4
  31. #define WND_BUTTONS      0x1021         //Button set canvas window ID         V4
  32. #define WND_HCANVAS      0x1040         //Hello canvas window ID              V5
  33. #define WND_LISTBOX      0x1050         //List box window ID                  V5
  34.  
  35. //**************************************************************************  V2
  36. // String IDs - used to relate resources to IStaticText and ITitle         *  V2
  37. //**************************************************************************  V2
  38. #define STR_HELLO        0x1200         //Hello World string ID               V2
  39. #define STR_INFO         0x1220         //Inactive text string ID             V2
  40. #define STR_INFODLG      0x1221         //Dialog inactive text string ID      V4
  41. #define STR_CENTER       0x1230         //Center alignment status string ID   V3
  42. #define STR_LEFT         0x1231         //Left alignment status string ID     V3
  43. #define STR_RIGHT        0x1232         //Right alignment status string ID    V3
  44. #define STR_CENTERB      0x1240         //Center button string ID             V4
  45. #define STR_LEFTB        0x1241         //Left button string ID               V4
  46. #define STR_RIGHTB       0x1242         //Right button string ID              V4
  47. #define STR_HELPB        0x1243         //Help button string ID               V5
  48. #define STR_HTITLE       0x1250         //Help window title string ID         V5
  49. #define STR_HELP_NOT_FOUND 0x1251       //Help not found string ID            V5
  50.  
  51. //**************************************************************************  V3
  52. // Menu IDs - used to relate command ID to menu items, buttons, and keys   *  V3
  53. //**************************************************************************  V3
  54. #define MI_ALIGNMENT     0x1500         //Alignment menu item command ID      V3
  55. #define MI_CENTER        0x1501         //Center menu item command ID         V3
  56. #define MI_LEFT          0x1502         //Left menu item command ID           V3
  57. #define MI_RIGHT         0x1503         //Right menu item command ID          V3
  58. #define MI_EDIT          0x1504         //Edit menu item command ID           V4
  59. #define MI_TEXT          0x1505         //Text menu item command ID           V4
  60. #define MI_HELP          0x1510         //Help menu item command ID           V5
  61.  
  62. //**************************************************************************  V5
  63. // Hello IDs - used for different language versions of Hello World text    *  V5
  64. //**************************************************************************  V5
  65. #define HI_WORLD         0x1700         //First Hello World text ID           V5
  66. #define HI_COUNT         8              //Number of Hello World text strings  V5
  67.  
  68. //**************************************************************************  V4
  69. // Dialog IDs - window IDs used in ATextDialog class                       *  V4
  70. //**************************************************************************  V4
  71. #ifndef DID_OK                          //If not already defined by OS/2,     V4
  72. #define DID_OK           0x0001         //OK button command ID                V4
  73. #endif                                  //                                    V4
  74. #ifndef DID_CANCEL                      //If not already defined by OS/2      V4
  75. #define DID_CANCEL       0x0002         //Cancel button command ID            V4
  76. #endif                                  //                                    V4
  77. #define DID_ENTRY        0x1603         //Dialog entry field window ID        V4
  78. #define DID_STATIC       0x1604         //Dialog static text window ID        V4
  79.  
  80. //**************************************************************************  V5
  81. // Help IDs - used to relate resources to IHelp class                      *  V5
  82. //**************************************************************************  V5
  83. #define HELP_TABLE       0x1800         //Help table ID                       V5
  84. #define SUBTABLE_MAIN    0x1801         //Help subtable for main window       V5
  85. #define SUBTABLE_DIALOG  0x1802         //Help subtable for dialog window     V5
  86. #endif
  87.