Some Borland/GnuWin32 fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,10 +38,14 @@ void WXDLLEXPORT wxFillLogFont(LOGFONT *logFont, wxFont *font);
|
|||||||
wxFont WXDLLEXPORT wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNew = TRUE);
|
wxFont WXDLLEXPORT wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNew = TRUE);
|
||||||
|
|
||||||
#ifdef __GNUWIN32__
|
#ifdef __GNUWIN32__
|
||||||
#define CASTWNDPROC (long unsigned)
|
# define CASTWNDPROC (long unsigned)
|
||||||
#else
|
#else
|
||||||
typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
|
# ifdef __BORLANDC__
|
||||||
#define CASTWNDPROC (WndProcCast)
|
# define CASTWNDPROC
|
||||||
|
# else
|
||||||
|
typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
|
||||||
|
# define CASTWNDPROC (WndProcCast)
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(APIENTRY) // NT defines APIENTRY, 3.x not
|
#if !defined(APIENTRY) // NT defines APIENTRY, 3.x not
|
||||||
|
@@ -186,7 +186,7 @@ WXSRC=$(WXDIR)/src/msw
|
|||||||
WXINC=$(WXDIR)/include
|
WXINC=$(WXDIR)/include
|
||||||
WXBASESRC=$(WXDIR)/src/common
|
WXBASESRC=$(WXDIR)/src/common
|
||||||
WXLIB=$(WXDIR)/lib/$(LIBPREFIX)wx.$(LIBSUFF)
|
WXLIB=$(WXDIR)/lib/$(LIBPREFIX)wx.$(LIBSUFF)
|
||||||
INC = -I$(WXINC) $(COMPPATHS)
|
INC = -I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(EXTRAINC)$(COMPPATHS)
|
||||||
RCLFLAGS=-cpp "cpp -lang-c++ -DWIN32 -D_WIN32 -DRCL_INVOKED -I$(WXWIN)\include"
|
RCLFLAGS=-cpp "cpp -lang-c++ -DWIN32 -D_WIN32 -DRCL_INVOKED -I$(WXWIN)\include"
|
||||||
|
|
||||||
#LIBS = -lctl3d32 $(WXLIB) $(WINLIBS) $(COMPLIBS)
|
#LIBS = -lctl3d32 $(WXLIB) $(WINLIBS) $(COMPLIBS)
|
||||||
|
@@ -560,7 +560,7 @@ $(CFG): makefile.b32
|
|||||||
-Oxt
|
-Oxt
|
||||||
-WE
|
-WE
|
||||||
|
|
||||||
-I$(WXINC);$(BCCDIR)\include;-I$(WXDIR)/src/png;-I$(WXDIR)/src/zlib
|
-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/zlib
|
||||||
-I$(WXDIR)\include\msw\gnuwin32
|
-I$(WXDIR)\include\msw\gnuwin32
|
||||||
|
|
||||||
-L$(BCCDIR)\lib
|
-L$(BCCDIR)\lib
|
||||||
|
@@ -171,7 +171,12 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt
|
|||||||
|
|
||||||
wxWindow *win = CreateAbortWindow(parent, printout);
|
wxWindow *win = CreateAbortWindow(parent, printout);
|
||||||
wxYield();
|
wxYield();
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__) || defined(__GNUWIN32__)
|
||||||
|
::SetAbortProc((HDC) dc->GetHDC(), (FARPROC) lpAbortProc);
|
||||||
|
#else
|
||||||
::SetAbortProc((HDC) dc->GetHDC(), (int (_stdcall *)(HDC, int)) lpAbortProc);
|
::SetAbortProc((HDC) dc->GetHDC(), (int (_stdcall *)(HDC, int)) lpAbortProc);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!win)
|
if (!win)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user