home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / ibmcli / ibasetyp.hp_ / IBASETYP.HPP
Encoding:
C/C++ Source or Header  |  1992-10-26  |  5.6 KB  |  159 lines

  1. /* No Document */
  2. /* Ship */
  3. #if !defined(_IBASETYPE_)
  4.   #define _IBASETYPE_
  5.  
  6. /***************************************************************/
  7. /* CLASS NAME:      NONE                                       */
  8. /*                                                             */
  9. /* DESCRIPTION  : This file contains ICLUI product wide     */
  10. /*         constants and forward declarations.                 */
  11. /*                                                             */
  12. /*                                                             */
  13. /* CHANGE ACTIVITY:                                            */
  14. /*   DATE:     INITIAL:        DESCRIPTION                     */
  15. /*                                                             */
  16. /*   101091    RDL        Move from ibasetyp.hxx               */
  17. /*   042591    KKL        Move from main.cxx                   */
  18. /*   050591    PHG        Add operator support                 */
  19. /*   071991    RDL/MKC    reworked pair hierarchy              */
  20. /*   100991    RDL        added "const"ness                    */
  21. /*   101091    RDL        moved classes to ipoint.hxx          */
  22. /*   110691    RDL        OS/2 typedefs and Boolean for String */
  23. /*   112891    RDL        Added HPIPE typedef                  */
  24. /*   040292    RDL        Changes for ITrace and Glockenspiel  */
  25. /*   070992    RDL        Removed outdated support.            */
  26. /*   071092    RDL        Removed CLASS() and STREAM support   */
  27. /*   071792    RDL        Added OS2LEVEL                       */
  28. /*   080592    RDL        Added IWINCALLBACK                   */
  29. /*   090392    law        Support borland/xlC compilers        */
  30. /*   092792    RDL        Boolean to int                       */
  31. /***************************************************************/
  32. /* Copyright (c) IBM Corporation 1992                          */
  33. /***************************************************************/
  34. #if 0
  35. extern "C"
  36. {
  37.  
  38.   /***************************************************************/
  39.   /* Note: In general, OS2LEVEL will need to be passed in as a   */
  40.   /*       compiler argument. The following defaults are valid   */
  41.   /*       as of 7/17/92 but may not be so later.                */
  42.   /***************************************************************/
  43.   #if !defined(OS2LEVEL)
  44.      #if defined(__IBMCPP__)
  45.         #define OS2LEVEL 200
  46.      #elif defined(__ZTC__)
  47.         #define OS2LEVEL 130
  48.      #elif defined(__BORLANDC__)
  49.         #define OS2LEVEL 200
  50.      #endif
  51.   #endif
  52.  
  53.   /***************************************************************/
  54.   /* Macro definitions  (mainly for IPoint & IRectangle)         */
  55.   /***************************************************************/
  56.   #if defined(min)
  57.     #undef min           // Changed for GlockenSpiel
  58.     #undef max           // Changed for GlockenSpiel
  59.   #endif
  60.  
  61.   #define MIN(a, b) ( ( (a) <= (b) ) ? (a) : (b) )
  62.   #define MAX(a, b) ( ( (a) >= (b) ) ? (a) : (b) )
  63.  
  64.   #define self (*this)
  65.  
  66.  
  67.   /***************************************************************/
  68.   /* Definition of Callbacks.                                    */
  69.   /***************************************************************/
  70.   #if (OS2LEVEL > 130)
  71.     #if defined( __xlC__ )
  72.     #elif defined( __BORLANDC__ )
  73.     #else
  74.       typedef int   ( _System ICALLBACK)  ();
  75.       typedef void* (_System IWINCALLBACK)(unsigned long, unsigned long,
  76.                                            void*, void*);
  77.     #endif
  78.   #else
  79.     #if defined( __xlC__ )
  80.     #elif defined( __BORLANDC__ )
  81.     #else
  82.       typedef int   (pascal far ICALLBACK)();
  83.       typedef void* (pascal far IWINCALLBACK)(void*, unsigned short,
  84.                                               void*, void*);
  85.     #endif
  86.   #endif
  87.  
  88.  
  89.   typedef int  Boolean;
  90.  
  91.   static const Boolean
  92.      true  = 1,
  93.      false = 0;
  94.  
  95.  
  96.   #if defined(IC_DEVELOP)
  97.      #define IC_TRACE_DEVELOP 1
  98.   #endif
  99.  
  100.   #if defined(IC_RUNTIME)
  101.      #define IC_TRACE_RUNTIME 1
  102.   #endif
  103.  
  104.  
  105.   /* Trace Support  */
  106.   #if defined(IC_TRACE_ALL)
  107.      #define IC_TRACE_DEVELOP 1
  108.      #define IC_TRACE_RUNTIME 1
  109.   #else
  110.     #if defined(IC_TRACE_DEVELOP)
  111.        #define IC_TRACE_RUNTIME 1
  112.     #endif
  113.   #endif
  114.  
  115.  
  116.   /* DosExit Support */
  117.   #define IC_ASSERTIONFAIL 5          /* assertion failure        */
  118.   #define IC_EXCEPTIONFAIL 6          /* throw in termination model */
  119.  
  120.   /* Not Found in list */
  121.   #define IC_NOTINLIST 0xFFFFFFFF
  122.  
  123.  
  124. }  /* end extern "C"  */
  125.  
  126.  
  127.   /***********************************************************/
  128.   /* Constant used in the class library                      */
  129.   /***********************************************************/
  130.   const int sThisPtrOffset = 0;      // QWL_USER
  131.   const int sWindowWordLen = 4;      // for "this" pointer
  132.  
  133.   /***********************************************************/
  134.   /* Library User Messages.                                  */
  135.   /***********************************************************/
  136.   #define IC_UMSTART        0xFFE0   /* Top of WM_USER Range */
  137.   #define IC_UMCOUNT         3
  138.   #define UM_WINDOWSETUP                (IC_UMSTART+0)
  139.   #define UM_INITWIN                    (IC_UMSTART+1)
  140.   #define UM_CLOSEWINDOW                (IC_UMSTART+2)
  141.   #define UM_DDE_CLOSED                 (IC_UMSTART+3)
  142.   #define UM_DRAGDROP_RENDER            (IC_UMSTART+4)  //PHG270892
  143.  
  144.   /***********************************************************/
  145.   /* Flag for Multi-Threaded Support.                        */
  146.   /***********************************************************/
  147.   #if !defined(_MT)
  148.     #define _MT 1
  149.   #endif
  150.  
  151. #else
  152.   #ifndef _IBASE_
  153.     #include <ibase.hpp>
  154.   #endif
  155. #endif
  156.  
  157. #endif
  158.  
  159.