home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 19.ddi / OWLINC.PAK / COMPAT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  2.3 KB  |  88 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1992, 1993 by Borland International
  3. //   include\owl\compat.h
  4. //----------------------------------------------------------------------------
  5. #if !defined(__OWL_COMPAT_H)
  6. #define __OWL_COMPAT_H
  7.  
  8. #if !defined(BI_OLDNAMES)
  9. #define BI_OLDNAMES
  10. #endif
  11.  
  12. #if !defined(__OWL_OWLDEFS_H)
  13.   #include <owl\owldefs.h>
  14. #endif
  15.  
  16. struct TMessage {
  17.   HWND  Receiver;
  18.   WORD  Message;
  19.  
  20.   union {
  21.     WORD  WParam;
  22.  
  23.     struct tagWP {
  24.       BYTE Lo;
  25.       BYTE Hi;
  26.     } WP;
  27.   };
  28.  
  29.   union {
  30.     DWORD  LParam;
  31.  
  32.     struct tagLP {
  33.       WORD Lo;
  34.       WORD Hi;
  35.     } LP;
  36.   };
  37.  
  38.   long  Result;
  39. };
  40.  
  41. TMessage _OWLFUNC __GetTMessage();
  42.  
  43. //
  44. // Constants for application messages
  45. //
  46. #define WM_FIRST        0x0000  // 0x0000- 0x7FFF window messages
  47. #define WM_INTERNAL     0x7F00  // 0x7F00- 0x7FFF reserved for internal use
  48. #define ID_FIRST        0x8000  // 0x8000- 0x8FFF child id messages
  49. #define ID_INTERNAL     0x8F00  // 0x8F00- 0x8FFF reserved for internal use
  50. #define NF_FIRST        0x9000  // 0x9000- 0x9FFF notification messages
  51. #define NF_INTERNAL     0x9F00  // 0x9F00- 0x9FFF reserved for internal use
  52. #define CM_FIRST        0xA000  // 0xA000- 0xFFFF command messages
  53. #define CM_INTERNAL     0xFF00  // 0xFF00- 0xFFFF reserved for internal use
  54. #define WM_COUNT        0x8000  // num of window msgs
  55. #define ID_COUNT        0x1000  // num of child id msgs
  56. #define NF_COUNT        0x1000  // num of notification msgs
  57. #define CM_COUNT        0x6000  // num of command msgs
  58.  
  59. #define WM_RESERVED             WM_INTERNAL - WM_FIRST
  60.  
  61. #define ID_RESERVED             ID_INTERNAL - Id_FIRST
  62. #define ID_FIRSTMDICHILD        ID_RESERVED + 1
  63. #define ID_MDICLIENT            ID_RESERVED + 2
  64.  
  65. #define CM_RESERVED             CM_INTERNAL - CM_FIRST
  66.  
  67.  
  68. //
  69. // Error conditions
  70. //
  71. #define EM_INVALIDCHILD         -1
  72. #define EM_INVALIDCLIENT        -2
  73. #define EM_INVALIDMAINWINDOW    -3
  74. #define EM_INVALIDMODULE        -4
  75. #define EM_INVALIDWINDOW        -5
  76. #define EM_OUTOFMEMORY          -6
  77.  
  78.  
  79. typedef int _FAR & Rint;
  80. typedef int _FAR * Pint;
  81. typedef void _FAR * Pvoid;
  82. typedef void _FAR * _FAR & RPvoid;
  83. typedef char _FAR * Pchar;
  84. typedef const char _FAR * PCchar;
  85. typedef const void _FAR * PCvoid;
  86.  
  87. #endif  // __OWL_COMPAT_H
  88.