X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ea105e0ba20c15e4d83f829e1c4faeb0a4952f0..108a0f648f39ccbde662959c0da57c9312a80ff4:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 7e46709d65..02b9577313 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -20,6 +20,7 @@ #include "wx/msw/winundef.h" class WXDLLEXPORT wxFont; +class WXDLLEXPORT wxWindow; // --------------------------------------------------------------------------- // private constants @@ -76,8 +77,12 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT; typedef int (pascal * WndProcCast) (); # define CASTWNDPROC (WndProcCast) # else - typedef int (PASCAL * WndProcCast) (); -# define CASTWNDPROC (WndProcCast) +# if defined(__VISUALC__) && defined(STRICT) +# define CASTWNDPROC (WNDPROC) +# else + typedef int (PASCAL * WndProcCast) (); +# define CASTWNDPROC (WndProcCast) +# endif # endif # else # define CASTWNDPROC @@ -104,8 +109,10 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT; #endif #if !defined(__WIN32__) // 3.x uses FARPROC for dialogs +#ifndef STRICT #define DLGPROC FARPROC #endif +#endif #if wxUSE_PENWIN WXDLLEXPORT void wxRegisterPenWin(); @@ -132,17 +139,17 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT; * for this combination of CTl3D/FAFA settings */ -#define STATIC_CLASS "STATIC" +#define STATIC_CLASS _T("STATIC") #define STATIC_FLAGS (SS_LEFT|WS_CHILD|WS_VISIBLE) -#define CHECK_CLASS "BUTTON" +#define CHECK_CLASS _T("BUTTON") #define CHECK_FLAGS (BS_AUTOCHECKBOX|WS_TABSTOP|WS_CHILD) #define CHECK_IS_FAFA FALSE -#define RADIO_CLASS "BUTTON" +#define RADIO_CLASS _T("BUTTON") #define RADIO_FLAGS (BS_AUTORADIOBUTTON|WS_CHILD|WS_VISIBLE) #define RADIO_SIZE 20 #define RADIO_IS_FAFA FALSE #define PURE_WINDOWS -#define GROUP_CLASS "BUTTON" +#define GROUP_CLASS _T("BUTTON") #define GROUP_FLAGS (BS_GROUPBOX|WS_CHILD|WS_VISIBLE) /*