X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6d94998fcbdb3ce60774e38c0d4b6ee20c6798..9f3362c440ef4c780d9a4bc8089de60a21d108bd:/include/wx/msw/private.h?ds=sidebyside diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 8a64ec8796..14ebb23d13 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -41,14 +41,26 @@ WXDLLEXPORT wxFont wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNe # define CASTWNDPROC (long unsigned) #else # ifdef __BORLANDC__ + +# ifdef __WIN32__ # define CASTWNDPROC +# else + typedef int (pascal * WndProcCast) (); +# define CASTWNDPROC (WndProcCast) +# endif + # else # if defined (__WIN32__) && defined(STRICT) typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long); # define CASTWNDPROC (WndProcCast) # elif defined(__WIN16__) +# ifdef __BORLANDC__ + typedef int (pascal * WndProcCast) (); +# define CASTWNDPROC (WndProcCast) +# else typedef int (PASCAL * WndProcCast) (); # define CASTWNDPROC (WndProcCast) +# endif # else # define CASTWNDPROC # endif @@ -165,12 +177,20 @@ inline bool wxStyleHasBorder(long style) #define WS_EX_CLIENTEDGE 0 #endif +#if defined(__WIN32__) && !defined(WS_EX_CLIENTEDGE) + #define WS_EX_CLIENTEDGE 0x00000200L +#endif + #if defined(__WIN95__) && defined(__WXDEBUG__) && wxUSE_DBWIN32 + +#ifndef __TWIN32__ #ifdef OutputDebugString #undef OutputDebugString #endif #define OutputDebugString OutputDebugStringW95 +#endif + extern void OutputDebugStringW95(const char*, ...); #endif