home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / igpb1.zip / AHELLOW4.H < prev    next >
Text File  |  1993-08-19  |  5KB  |  66 lines

  1. #ifndef AHELLOWINDOW_H
  2. #define AHELLOWINDOW_H
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 4: Symbolic Definitions (AHELLOW4.H)  */
  5. /*                                                                            */
  6. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  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. //**************************************************************************
  20. // window ids - used by IWindow constructors (eg IStaticText, AHelloWindow)*
  21. //**************************************************************************
  22. #define WND_MAIN         0x1000         //Main Window ID
  23.  
  24. #define WND_HELLO        0x1010         //Hello World Window ID
  25. #define WND_INFO         0x1012         //Information Area                    v2
  26. #define WND_STATUS       0x1011         //Status Line Window ID               v3
  27. #define WND_TEXTDIALOG   0x1013         //Text Dialog Window ID               v4
  28. #define WND_BUTTONS      0x1021         //Button Canvas Window ID             v4
  29.  
  30. //**************************************************************************  v2
  31. // string ids - used to relate resources to IStaticText and ITitle         *   .
  32. //**************************************************************************  v2
  33. #define STR_HELLO        0x1200         //Hello World String ID               v2
  34. #define STR_INFO         0x1220         //Info String ID                      v2
  35. #define STR_INFODLG      0x1221         //Info String ID                      v4
  36. #define STR_CENTER       0x1230         //Center Alignment Status String ID   v3
  37. #define STR_LEFT         0x1231         //Left Alignment Status String ID      .
  38. #define STR_RIGHT        0x1232         //Right Alignment Status String ID    v3
  39. #define STR_CENTERB      0x1240         //Center Button String ID             v4
  40. #define STR_LEFTB        0x1241         //Left Button String ID                .
  41. #define STR_RIGHTB       0x1242         //Right Button String ID              v4
  42.  
  43. //**************************************************************************  v3
  44. // menu ids - used on relate command ID to Menu Items and Function Keys    *   .
  45. //**************************************************************************   .
  46. #define MI_ALIGNMENT     0x1500         //Alignment Menu ID                    .
  47. #define MI_CENTER        0x1501         //Center Menu ID                       .
  48. #define MI_LEFT          0x1502         //Left Menu ID                         .
  49. #define MI_RIGHT         0x1503         //Right Menu ID                       v3
  50. #define MI_EDIT          0x1504         //Edit Menu ID                        v4
  51. #define MI_TEXT          0x1505         //Text Menu ID                        v4
  52.  
  53. //**************************************************************************  v4
  54. // dialog ids - used to relate dialog fields to controls/commands          *   .
  55. //**************************************************************************   .
  56. #ifndef DID_OK                          //                                     .
  57. #define DID_OK           0x0001         //OK Button (Defined by os/2)          .
  58. #endif                                  //                                     .
  59. #ifndef DID_CANCEL                      //                                     .
  60. #define DID_CANCEL       0x0002         //Cancel Button (Defined by os/2)      .
  61. #endif                                  //                                     .
  62. #define DID_ENTRY        0x1603         //Dialog Entry Field ID                .
  63. #define DID_STATIC       0x1604         //Dialog Static Text                  v4
  64.  
  65. #endif
  66.