home *** CD-ROM | disk | FTP | other *** search
- /* No Document */
- /* Ship */
- #if !defined(_IBASETYPE_)
- #define _IBASETYPE_
-
- /***************************************************************/
- /* CLASS NAME: NONE */
- /* */
- /* DESCRIPTION : This file contains ICLUI product wide */
- /* constants and forward declarations. */
- /* */
- /* */
- /* CHANGE ACTIVITY: */
- /* DATE: INITIAL: DESCRIPTION */
- /* */
- /* 101091 RDL Move from ibasetyp.hxx */
- /* 042591 KKL Move from main.cxx */
- /* 050591 PHG Add operator support */
- /* 071991 RDL/MKC reworked pair hierarchy */
- /* 100991 RDL added "const"ness */
- /* 101091 RDL moved classes to ipoint.hxx */
- /* 110691 RDL OS/2 typedefs and Boolean for String */
- /* 112891 RDL Added HPIPE typedef */
- /* 040292 RDL Changes for ITrace and Glockenspiel */
- /* 070992 RDL Removed outdated support. */
- /* 071092 RDL Removed CLASS() and STREAM support */
- /* 071792 RDL Added OS2LEVEL */
- /* 080592 RDL Added IWINCALLBACK */
- /* 090392 law Support borland/xlC compilers */
- /* 092792 RDL Boolean to int */
- /***************************************************************/
- /* Copyright (c) IBM Corporation 1992 */
- /***************************************************************/
- #if 0
- extern "C"
- {
-
- /***************************************************************/
- /* Note: In general, OS2LEVEL will need to be passed in as a */
- /* compiler argument. The following defaults are valid */
- /* as of 7/17/92 but may not be so later. */
- /***************************************************************/
- #if !defined(OS2LEVEL)
- #if defined(__IBMCPP__)
- #define OS2LEVEL 200
- #elif defined(__ZTC__)
- #define OS2LEVEL 130
- #elif defined(__BORLANDC__)
- #define OS2LEVEL 200
- #endif
- #endif
-
- /***************************************************************/
- /* Macro definitions (mainly for IPoint & IRectangle) */
- /***************************************************************/
- #if defined(min)
- #undef min // Changed for GlockenSpiel
- #undef max // Changed for GlockenSpiel
- #endif
-
- #define MIN(a, b) ( ( (a) <= (b) ) ? (a) : (b) )
- #define MAX(a, b) ( ( (a) >= (b) ) ? (a) : (b) )
-
- #define self (*this)
-
-
- /***************************************************************/
- /* Definition of Callbacks. */
- /***************************************************************/
- #if (OS2LEVEL > 130)
- #if defined( __xlC__ )
- #elif defined( __BORLANDC__ )
- #else
- typedef int ( _System ICALLBACK) ();
- typedef void* (_System IWINCALLBACK)(unsigned long, unsigned long,
- void*, void*);
- #endif
- #else
- #if defined( __xlC__ )
- #elif defined( __BORLANDC__ )
- #else
- typedef int (pascal far ICALLBACK)();
- typedef void* (pascal far IWINCALLBACK)(void*, unsigned short,
- void*, void*);
- #endif
- #endif
-
-
- typedef int Boolean;
-
- static const Boolean
- true = 1,
- false = 0;
-
-
- #if defined(IC_DEVELOP)
- #define IC_TRACE_DEVELOP 1
- #endif
-
- #if defined(IC_RUNTIME)
- #define IC_TRACE_RUNTIME 1
- #endif
-
-
- /* Trace Support */
- #if defined(IC_TRACE_ALL)
- #define IC_TRACE_DEVELOP 1
- #define IC_TRACE_RUNTIME 1
- #else
- #if defined(IC_TRACE_DEVELOP)
- #define IC_TRACE_RUNTIME 1
- #endif
- #endif
-
-
- /* DosExit Support */
- #define IC_ASSERTIONFAIL 5 /* assertion failure */
- #define IC_EXCEPTIONFAIL 6 /* throw in termination model */
-
- /* Not Found in list */
- #define IC_NOTINLIST 0xFFFFFFFF
-
-
- } /* end extern "C" */
-
-
- /***********************************************************/
- /* Constant used in the class library */
- /***********************************************************/
- const int sThisPtrOffset = 0; // QWL_USER
- const int sWindowWordLen = 4; // for "this" pointer
-
- /***********************************************************/
- /* Library User Messages. */
- /***********************************************************/
- #define IC_UMSTART 0xFFE0 /* Top of WM_USER Range */
- #define IC_UMCOUNT 3
- #define UM_WINDOWSETUP (IC_UMSTART+0)
- #define UM_INITWIN (IC_UMSTART+1)
- #define UM_CLOSEWINDOW (IC_UMSTART+2)
- #define UM_DDE_CLOSED (IC_UMSTART+3)
- #define UM_DRAGDROP_RENDER (IC_UMSTART+4) //PHG270892
-
- /***********************************************************/
- /* Flag for Multi-Threaded Support. */
- /***********************************************************/
- #if !defined(_MT)
- #define _MT 1
- #endif
-
- #else
- #ifndef _IBASE_
- #include <ibase.hpp>
- #endif
- #endif
-
- #endif
-