home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 3.ddi / OWLINC.ZIP / OWLDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  4.4 KB  |  143 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #ifndef __OWLDEFS_H
  4. #define __OWLDEFS_H
  5.  
  6. #if defined(_CLASSDLL) || defined(__DLL__)
  7. #  define _RTLDLL
  8. #endif
  9.  
  10. #if !defined(__DEFS_H)
  11.   #include <_defs.h>
  12. #endif    // __DEFS_H
  13.  
  14. #if !defined(__OWLRC_H)
  15.   #include <owlrc.h>
  16.   #define __OWLRC_H
  17. #endif
  18.  
  19. #if defined(__cplusplus)
  20. typedef int       _FAR &        Rint;
  21. typedef int       _FAR *        Pint;
  22. typedef void       _FAR *        Pvoid;
  23. typedef void       _FAR * _FAR &    RPvoid;
  24. typedef char       _FAR *        Pchar;
  25. typedef const char _FAR *        PCchar;
  26. typedef const void _FAR *        PCvoid;
  27.  
  28. // windows 3.0-compatibility types
  29.  
  30. #if  defined(WIN30)
  31.  
  32. #define            _WIN30_API           1
  33.  
  34. typedef long                            LONG_30;
  35. typedef unsigned int                    WORD_30;
  36. typedef unsigned int                    WORD_30;
  37. typedef unsigned int                    HDC_30;
  38. typedef unsigned int                    HWND_30;
  39. typedef unsigned int                    HINSTANCE_30;
  40.  
  41. #endif
  42. #endif
  43.  
  44. /* Since some resource editors strip comments from header files, some
  45.    brief comments on the contents of owlrc.h are included here:
  46.  
  47.    The SD_ constants are used for the File Open, File Save, Input,
  48.    Search and Replace dialogs.
  49.  
  50.    ID_FNAME, ID_FPATH, ID_FLIST and ID_DLIST are used for TFileDialog.
  51.  
  52.    ID_PROMPT, ID_INPUT, ID_SEARCHTEXT, ID_CASESENSITIVE, ID_REPLACETEXT,
  53.    ID_REPLACEALL and ID_PROMPTONREPLACE are used by TSearchDialog.
  54.  
  55.    ID_EDITOR is used by TEditWindow.
  56.  
  57.    ID_MDICLIENT is the default id for TMDIClient and ID_FIRSTMDICHILD
  58.    is the id of the first MDI child created by a TMDIClient.
  59.  
  60.    Note that the ID_ constants defined in OWL are all greater than or
  61.    equal to ID_RESERVED. Any ID_ constants you use should be less than
  62.    ID_RESERVED.
  63.  
  64.    Note that the CM_ constants defined in OWL are all greater than or
  65.    equal to CM_RESERVED. Any CM_ constants you use should be less than
  66.    CM_RESERVED.
  67.  
  68. */
  69.  
  70. /* Constants for application messages */
  71. #define WM_FIRST        0x0000  /* 0x0000- 0x7FFF window messages */
  72. #define WM_INTERNAL     0x7F00  /* 0x7F00- 0x7FFF reserved for internal use */
  73. #define ID_FIRST        0x8000  /* 0x8000- 0x8FFF child id messages */
  74. #define ID_INTERNAL     0x8F00  /* 0x8F00- 0x8FFF reserved for internal use */
  75. #define NF_FIRST        0x9000  /* 0x9000- 0x9FFF notification messages */
  76. #define NF_INTERNAL     0x9F00  /* 0x9F00- 0x9FFF reserved for internal use */
  77. #define CM_FIRST        0xA000  /* 0xA000- 0xFFFF command messages */
  78. #define CM_INTERNAL     0xFF00  /* 0xFF00- 0xFFFF reserved for internal use */
  79. #define WM_COUNT     0x8000    /* num of window msgs */
  80. #define ID_COUNT     0x1000    /* num of child id msgs */
  81. #define NF_COUNT     0x1000    /* num of notification msgs */
  82. #define CM_COUNT     0x6000    /* num of command msgs */
  83.  
  84. #define WM_RESERVED             WM_INTERNAL - WM_FIRST
  85.  
  86. #define ID_RESERVED             ID_INTERNAL - ID_FIRST
  87. #define ID_FIRSTMDICHILD        ID_RESERVED + 1
  88. #define ID_MDICLIENT             ID_RESERVED + 2
  89.  
  90. #define CM_RESERVED             CM_INTERNAL - CM_FIRST
  91.  
  92.  
  93.   /* Bit masks for TWindowsObject Flags */
  94. #define WB_ALIAS              0x01
  95. #define WB_AUTOCREATE         0x02
  96. #define WB_FROMRESOURCE       0x04
  97. #define WB_KBHANDLER          0x08
  98. #define WB_MDICHILD           0x10
  99. #define WB_MDIFRAME           0x20
  100. #define WB_PREDEFINEDCLASS    0x40
  101. #define WB_TRANSFER           0x80
  102.  
  103.   /* Error conditions */
  104. #define EM_INVALIDCHILD         -1
  105. #define EM_INVALIDCLIENT        -2
  106. #define EM_INVALIDMAINWINDOW    -3
  107. #define EM_INVALIDMODULE        -4
  108. #define EM_INVALIDWINDOW        -5
  109. #define EM_OUTOFMEMORY          -6
  110.  
  111.   /* Transfer function flags */
  112. #define TF_GETDATA               0
  113. #define TF_SETDATA               1
  114. #define TF_SIZEDATA              2
  115.  
  116. /* Checkbox flags indicating check state */
  117. #define BF_CHECKED      0x1
  118. #define BF_GRAYED       0x2
  119. #define BF_UNCHECKED    0x0
  120.  
  121. // define classes types for isA()
  122.  
  123. #define  moduleClass          (__firstOWLClass)
  124. #define  applicationClass     (moduleClass + 1)
  125. #define  scrollerClass        (applicationClass + 1)
  126. #define  windowClass          (scrollerClass + 1)
  127. #define  dialogClass          (windowClass + 1)
  128.  
  129.  
  130. #if  defined(__DLL__)
  131. #  define _EXPORT _export
  132. #else
  133. #  define _EXPORT _CLASSTYPE
  134. #endif
  135.  
  136. #if  defined(__DLL__)
  137. #  define _EXPFUNC _export
  138. #else
  139. #  define _EXPFUNC
  140. #endif
  141.  
  142. #endif
  143.