//---------------------------------------------------------------------------- // ObjectWindows // (C) Copyright 1992, 1994 by Borland International, All Rights Reserved // //---------------------------------------------------------------------------- #if !defined(OWL_COMPAT_H) #define OWL_COMPAT_H #if defined(__WIN32__) #pragma message Check maximum identifier length setting. Must equal 55 or greater. #endif #if !defined(BI_OLDNAMES) # define BI_OLDNAMES #endif #include #if !defined(OWL_OWLDEFS_H) # include #endif struct TMessage { HWND Receiver; uint16 Message; union { uint16 WParam; struct tagWP { uint8 Lo; uint8 Hi; } WP; }; union { uint32 LParam; struct tagLP { uint16 Lo; uint16 Hi; } LP; }; long Result; }; class _OWLCLASS TWindow; TMessage _OWLFUNC __GetTMessageWin(TWindow* win); #define __GetTMessage() __GetTMessageWin(this) // // Constants for application messages // #define WM_FIRST 0x0000 // 0x0000- 0x7FFF window messages #define WM_INTERNAL 0x7F00 // 0x7F00- 0x7FFF reserved for internal use #define ID_FIRST 0x8000 // 0x8000- 0x8FFF child id messages #define ID_INTERNAL 0x8F00 // 0x8F00- 0x8FFF reserved for internal use #define NF_FIRST 0x9000 // 0x9000- 0x9FFF notification messages #define NF_INTERNAL 0x9F00 // 0x9F00- 0x9FFF reserved for internal use #define CM_FIRST 0xA000 // 0xA000- 0xFFFF command messages #define CM_INTERNAL 0xFF00 // 0xFF00- 0xFFFF reserved for internal use #define WM_COUNT 0x8000 // num of window msgs #define ID_COUNT 0x1000 // num of child id msgs #define NF_COUNT 0x1000 // num of notification msgs #define CM_COUNT 0x6000 // num of command msgs #define WM_RESERVED WM_INTERNAL - WM_FIRST #define ID_RESERVED ID_INTERNAL - ID_FIRST #define ID_FIRSTMDICHILD ID_RESERVED + 1 #define ID_MDICLIENT ID_RESERVED + 2 #define CM_RESERVED CM_INTERNAL - CM_FIRST // // Error conditions // #define EM_INVALIDCHILD -1 #define EM_INVALIDCLIENT -2 #define EM_INVALIDMAINWINDOW -3 #define EM_INVALIDMODULE -4 #define EM_INVALIDWINDOW -5 #define EM_OUTOFMEMORY -6 typedef int _FAR & Rint; typedef int _FAR * Pint; typedef void _FAR * Pvoid; typedef void _FAR * _FAR & RPvoid; typedef char _FAR * Pchar; typedef const char _FAR * PCchar; typedef const void _FAR * PCvoid; #endif // OWL_COMPAT_H