fix bugs when compiling with dmars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
14112c7b78
commit
50165591a5
@ -91,6 +91,11 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
|
||||
|
||||
#define CASTWNDPROC (WndProcCast)
|
||||
|
||||
//is this the right place; doing a #include...missing.h gives errors (CE)
|
||||
#if defined(__DIGITALMARS__)
|
||||
#define CCS_VERT 0x00000080L
|
||||
#endif
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// some stuff for old Windows versions (FIXME: what does it do here??)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
@ -88,8 +88,8 @@
|
||||
#include "wx/msw/wrapcctl.h"
|
||||
|
||||
#if (!defined(__MINGW32__) || wxCHECK_W32API_VERSION( 2, 0 )) && \
|
||||
!defined(__CYGWIN__) && !defined(__WXWINCE__) && \
|
||||
(!defined(_MSC_VER) || (_MSC_VER > 1100))
|
||||
!defined(__CYGWIN__) && !defined(__DIGITALMARS__) && !defined(__WXWINCE__) && \
|
||||
(!defined(_MSC_VER) || (_MSC_VER > 1100))
|
||||
#include <shlwapi.h>
|
||||
#endif
|
||||
|
||||
@ -847,7 +847,8 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event)
|
||||
/* static */
|
||||
int wxApp::GetComCtl32Version()
|
||||
{
|
||||
#if defined(__WXMICROWIN__) || defined(__WXWINCE__)
|
||||
//FIX ME FOR DIGITALMARS!!
|
||||
#if defined(__WXMICROWIN__) || defined(__WXWINCE__) || defined(__DIGITALMARS__)
|
||||
return 0;
|
||||
#else
|
||||
// cache the result
|
||||
|
@ -14,7 +14,7 @@ WXDIR = ..\..
|
||||
|
||||
include ..\makesc.env
|
||||
|
||||
DEBUG=1
|
||||
DEBUG=0
|
||||
|
||||
LIBTARGET = $(LIBDIR)\wx$(SC_SUFFIX).lib
|
||||
|
||||
@ -133,6 +133,7 @@ COMMONOBJS = $(COMMDIR)\accesscmn.obj \
|
||||
$(COMMDIR)\imagtiff.obj \
|
||||
$(COMMDIR)\imagxpm.obj \
|
||||
$(COMMDIR)\intl.obj \
|
||||
$(COMMDIR)\init.obj \
|
||||
$(COMMDIR)\ipcbase.obj \
|
||||
$(COMMDIR)\layout.obj \
|
||||
$(COMMDIR)\lboxcmn.obj \
|
||||
|
@ -1009,7 +1009,8 @@ wxSize wxToolBar::GetToolSize() const
|
||||
{
|
||||
// TB_GETBUTTONSIZE is supported from version 4.70
|
||||
#if defined(_WIN32_IE) && (_WIN32_IE >= 0x300 ) \
|
||||
&& !( defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 1, 0 ) )
|
||||
&& !( defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 1, 0 ) ) \
|
||||
&& !defined (__DIGITALMARS__)
|
||||
if ( wxTheApp->GetComCtl32Version() >= 470 )
|
||||
{
|
||||
DWORD dw = ::SendMessage(GetHwnd(), TB_GETBUTTONSIZE, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user