git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10892
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
14 files changed:
#pragma interface "wxtree.h"
#endif
#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
#include <wx/string.h>
class WXDLLEXPORT wxTreeLayout: public wxObject
#ifndef _WX_MSW_GCCPRIV_H_
#define _WX_MSW_GCCPRIV_H_
#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>
// check for MinGW/Cygwin w32api version ( releases >= 0.5, only )
#if defined( HAVE_W32API_H )
#include <w32api.h>
#ifndef _WX_PRIVATE_H_
#define _WX_PRIVATE_H_
#ifndef _WX_PRIVATE_H_
#define _WX_PRIVATE_H_
+#ifndef STRICT
+ #define STRICT 1
+#endif
+
#include <windows.h>
#ifdef __WXMICROWIN__
#include <windows.h>
#ifdef __WXMICROWIN__
// include standard Windows headers
#if defined(__WXMSW__) && !wxUSE_MFC
// include standard Windows headers
#if defined(__WXMSW__) && !wxUSE_MFC
+ #ifndef STRICT
+ #define STRICT 1
+ #endif
+
#include <windows.h>
#include "wx/msw/winundef.h"
#endif
#include <windows.h>
#include "wx/msw/winundef.h"
#endif
#ifndef WX_PRECOMP
#include "wx/module.h"
#endif
#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"
#ifndef WX_PRECOMP
#include "wx/string.h"
#endif
#ifndef WX_PRECOMP
#endif
#ifndef WX_PRECOMP
+#include "wx/dc.h"
+#include "wx/event.h"
#endif
#if wxUSE_TREELAYOUT
#endif
#if wxUSE_TREELAYOUT
wxHtmlEntitiesParser::~wxHtmlEntitiesParser()
{
wxHtmlEntitiesParser::~wxHtmlEntitiesParser()
{
+#if wxUSE_WCHAR_T && !wxUSE_UNICODE
}
void wxHtmlEntitiesParser::SetEncoding(wxFontEncoding encoding)
}
void wxHtmlEntitiesParser::SetEncoding(wxFontEncoding encoding)
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/intl.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/intl.h"
#endif
#if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS
#endif
#if wxUSE_HTML && wxUSE_PRINTING_ARCHITECTURE && wxUSE_STREAMS
#define _WIN32_IE 0x0200
#endif
#define _WIN32_IE 0x0200
#endif
+#if _WIN32_IE >= 0x0300 \
+ && !( defined(__MINGW32__) && !wxCHECK_W32API_VERSION( 1, 0 ) )
#include <shlwapi.h>
#endif
#include <shlwapi.h>
#endif
if ( dwRet != 0 )
{
wxLogError(_("Failed to %s dialup connection: %s"),
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
GetErrorString(dwRet).c_str());
// we should still call RasHangUp() if we got a non 0 connection
popup.idString = contextId ;
GetCursorPos(& popup.pt);
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;
popup.rcMargins.top = popup.rcMargins.left = popup.rcMargins.right = popup.rcMargins.bottom = -1;
popup.pszFont = NULL;
popup.pszText = NULL;
popup.hinst = (HINSTANCE) wxGetInstance();
popup.idString = 0 ;
popup.pt.x = pos.x; popup.pt.y = pos.y;
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;
popup.rcMargins.top = popup.rcMargins.left = popup.rcMargins.right = popup.rcMargins.bottom = -1;
popup.pszFont = NULL;
popup.pszText = (const wxChar*) text;
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/brush.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/brush.h"
wxSize wxToolBar::GetToolSize() const
{
// TB_GETBUTTONSIZE is supported from version 4.70
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);
if ( wxTheApp->GetComCtl32Version() >= 470 )
{
DWORD dw = ::SendMessage(GetHwnd(), TB_GETBUTTONSIZE, 0, 0);
-#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;
case NM_CUSTOMDRAW:
{
LPNMTVCUSTOMDRAW lptvcd = (LPNMTVCUSTOMDRAW)lParam;