applied patch 439186 (mingw and VC5 fixes)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-07-07 23:02:09 +00:00
parent 7bf1474ab6
commit 5438a5665e
14 changed files with 40 additions and 8 deletions

View File

@ -16,6 +16,13 @@
#pragma interface "wxtree.h"
#endif
#ifndef WX_PRECOMP
#include <wx/object.h>
class wxList;
class wxDC;
class wxMouseEvent;
#endif
#include <wx/string.h>
class WXDLLEXPORT wxTreeLayout: public wxObject

View File

@ -3,6 +3,13 @@
#ifndef _WX_MSW_GCCPRIV_H_
#define _WX_MSW_GCCPRIV_H_
#if defined( __MINGW32__ )
#include <_mingw.h>
#if __MINGW32_MAJOR_VERSION >= 1
#define HAVE_W32API_H
#endif
#endif
// check for MinGW/Cygwin w32api version ( releases >= 0.5, only )
#if defined( HAVE_W32API_H )
#include <w32api.h>

View File

@ -14,6 +14,10 @@
#ifndef _WX_PRIVATE_H_
#define _WX_PRIVATE_H_
#ifndef STRICT
#define STRICT 1
#endif
#include <windows.h>
#ifdef __WXMICROWIN__

View File

@ -33,6 +33,10 @@
// include standard Windows headers
#if defined(__WXMSW__) && !wxUSE_MFC
#ifndef STRICT
#define STRICT 1
#endif
#include <windows.h>
#include "wx/msw/winundef.h"
#endif

View File

@ -34,6 +34,8 @@
#ifndef WX_PRECOMP
#include "wx/module.h"
#endif
// this one is needed for MSVC5
#include "wx/module.h"
#ifndef WX_PRECOMP
#include "wx/string.h"

View File

@ -21,6 +21,8 @@
#endif
#ifndef WX_PRECOMP
#include "wx/dc.h"
#include "wx/event.h"
#endif
#if wxUSE_TREELAYOUT

View File

@ -219,7 +219,9 @@ wxHtmlEntitiesParser::wxHtmlEntitiesParser()
wxHtmlEntitiesParser::~wxHtmlEntitiesParser()
{
#if wxUSE_WCHAR_T && !wxUSE_UNICODE
delete m_conv;
#endif
}
void wxHtmlEntitiesParser::SetEncoding(wxFontEncoding encoding)

View File

@ -25,6 +25,7 @@
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/dc.h"
#endif
#if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS

View File

@ -115,7 +115,8 @@
#define _WIN32_IE 0x0200
#endif
#if _WIN32_IE >= 0x0300
#if _WIN32_IE >= 0x0300 \
&& !( defined(__MINGW32__) && !wxCHECK_W32API_VERSION( 1, 0 ) )
#include <shlwapi.h>
#endif

View File

@ -865,7 +865,7 @@ bool wxDialUpManagerMSW::Dial(const wxString& nameOfISP,
if ( dwRet != 0 )
{
wxLogError(_("Failed to %s dialup connection: %s"),
async ? _("initiate") : _("establish"),
wxString(async ? _("initiate") : _("establish")).c_str(),
GetErrorString(dwRet).c_str());
// we should still call RasHangUp() if we got a non 0 connection

View File

@ -185,8 +185,8 @@ bool wxCHMHelpController::DisplayContextPopup(int contextId)
popup.idString = contextId ;
GetCursorPos(& popup.pt);
popup.clrForeground = -1;
popup.clrBackground = -1;
popup.clrForeground = (COLORREF)-1;
popup.clrBackground = (COLORREF)-1;
popup.rcMargins.top = popup.rcMargins.left = popup.rcMargins.right = popup.rcMargins.bottom = -1;
popup.pszFont = NULL;
popup.pszText = NULL;
@ -202,8 +202,8 @@ bool wxCHMHelpController::DisplayTextPopup(const wxString& text, const wxPoint&
popup.hinst = (HINSTANCE) wxGetInstance();
popup.idString = 0 ;
popup.pt.x = pos.x; popup.pt.y = pos.y;
popup.clrForeground = -1;
popup.clrBackground = -1;
popup.clrForeground = (COLORREF)-1;
popup.clrBackground = (COLORREF)-1;
popup.rcMargins.top = popup.rcMargins.left = popup.rcMargins.right = popup.rcMargins.bottom = -1;
popup.pszFont = NULL;
popup.pszText = (const wxChar*) text;

View File

@ -25,6 +25,7 @@
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/brush.h"
#include "wx/slider.h"
#endif
#ifdef __WIN95__

View File

@ -856,7 +856,8 @@ void wxToolBar::SetRows(int nRows)
wxSize wxToolBar::GetToolSize() const
{
// TB_GETBUTTONSIZE is supported from version 4.70
#if defined(_WIN32_IE) && (_WIN32_IE >= 0x300 )
#if defined(_WIN32_IE) && (_WIN32_IE >= 0x300 ) \
&& !( defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 1, 0 ) )
if ( wxTheApp->GetComCtl32Version() >= 470 )
{
DWORD dw = ::SendMessage(GetHwnd(), TB_GETBUTTONSIZE, 0, 0);

View File

@ -2138,7 +2138,7 @@ bool wxTreeCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
}
break;
#if defined(_WIN32_IE) && _WIN32_IE >= 0x300 && !wxUSE_COMCTL32_SAFELY
#if defined(_WIN32_IE) && _WIN32_IE >= 0x300 && !wxUSE_COMCTL32_SAFELY && !defined(__GNUWIN32__)
case NM_CUSTOMDRAW:
{
LPNMTVCUSTOMDRAW lptvcd = (LPNMTVCUSTOMDRAW)lParam;