removed Win16 code (patch 905241), last version with remains of Win16 support tagged with BEFORE_WIN16_REMOVAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -49,8 +49,7 @@ class WXDLLIMPEXP_BASE wxArrayString;
|
||||
|
||||
/// should we use registry instead of configuration files under Windows?
|
||||
// (i.e. whether wxConfigBase::Create() will create a wxFileConfig (if it's
|
||||
// FALSE) or wxRegConfig (if it's true and we're under Win32) or wxIniConfig
|
||||
// (under Win16))
|
||||
// FALSE) or wxRegConfig (if it's true and we're under Win32))
|
||||
#ifndef wxUSE_CONFIG_NATIVE
|
||||
#define wxUSE_CONFIG_NATIVE 1
|
||||
#endif
|
||||
@@ -320,12 +319,9 @@ private:
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// under Windows we prefer to use the native implementation
|
||||
// wxIniConfig isn't native anywhere after droping win16 in wxWidgets 2.6
|
||||
#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE
|
||||
#ifdef __WIN32__
|
||||
#define wxConfig wxRegConfig
|
||||
#else //WIN16
|
||||
#define wxConfig wxIniConfig
|
||||
#endif
|
||||
#else // either we're under Unix or wish to use files even under Windows
|
||||
#define wxConfig wxFileConfig
|
||||
#endif
|
||||
|
@@ -596,7 +596,6 @@ public:
|
||||
// ------------------
|
||||
|
||||
// for compatibility with the old code when wxCoord was long everywhere
|
||||
#ifndef __WIN16__
|
||||
void GetTextExtent(const wxString& string,
|
||||
long *x, long *y,
|
||||
long *descent = NULL,
|
||||
@@ -645,7 +644,6 @@ public:
|
||||
if (w) *w = ww;
|
||||
if (h) *h = hh;
|
||||
}
|
||||
#endif // !Win16
|
||||
|
||||
protected:
|
||||
// the pure virtual functions which should be implemented by wxDC
|
||||
|
@@ -234,11 +234,7 @@ typedef int wxWindowID;
|
||||
/* general, but there are places where you can use them to advantage */
|
||||
/* without totally breaking ports that cannot use them. If you do, then */
|
||||
/* wrap it in this guard, but such cases should still be relatively rare. */
|
||||
#ifndef __WIN16__
|
||||
#define wxUSE_NESTED_CLASSES 1
|
||||
#else
|
||||
#define wxUSE_NESTED_CLASSES 0
|
||||
#endif
|
||||
#define wxUSE_NESTED_CLASSES 1
|
||||
|
||||
/* check for explicit keyword support */
|
||||
#ifndef HAVE_EXPLICIT
|
||||
@@ -566,14 +562,8 @@ enum
|
||||
/* to ensure compatibility with 2.0, we must use long */
|
||||
#define wxCoord long
|
||||
#else /* !wxUSE_COMPATIBLE_COORD_TYPES */
|
||||
#ifdef __WIN16__
|
||||
/* under Win16, int is too small, so use long to allow for bigger */
|
||||
/* virtual canvases */
|
||||
typedef long wxCoord;
|
||||
#else /* !Win16 */
|
||||
/* other platforms we support have at least 32bit int - quite enough */
|
||||
typedef int wxCoord;
|
||||
#endif /* Win16/!Win16 */
|
||||
#endif /* wxUSE_COMPATIBLE_COORD_TYPES/!wxUSE_COMPATIBLE_COORD_TYPES */
|
||||
|
||||
|
||||
@@ -2158,17 +2148,9 @@ typedef WX_NSView WXWidget; /* wxWindows BASE definition */
|
||||
#ifdef __WXMSW__
|
||||
|
||||
/* the keywords needed for WinMain() declaration */
|
||||
#ifdef __WIN16__
|
||||
# ifdef __VISUALC__
|
||||
# define WXFAR __far
|
||||
# else
|
||||
# define WXFAR _far
|
||||
# endif
|
||||
#else /* Win32 */
|
||||
# ifndef WXFAR
|
||||
#ifndef WXFAR
|
||||
# define WXFAR
|
||||
# endif
|
||||
#endif /* Win16/32 */
|
||||
#endif
|
||||
|
||||
/* Stand-ins for Windows types to avoid #including all of windows.h */
|
||||
typedef void * WXHWND;
|
||||
|
@@ -8,32 +8,32 @@ class WXDLLEXPORT wxMemoryDC;
|
||||
class WXDLLEXPORT wxDC;
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
#include "wx/generic/dragimgg.h"
|
||||
#define wxDragImage wxGenericDragImage
|
||||
# if defined(__WXUNIVERSAL__)
|
||||
# include "wx/generic/dragimgg.h"
|
||||
# define wxDragImage wxGenericDragImage
|
||||
# else
|
||||
# include "wx/msw/dragimag.h"
|
||||
# endif
|
||||
|
||||
#else
|
||||
#include "wx/msw/dragimag.h"
|
||||
#endif
|
||||
#elif defined(__WXMOTIF__)
|
||||
#include "wx/generic/dragimgg.h"
|
||||
#define wxDragImage wxGenericDragImage
|
||||
# include "wx/generic/dragimgg.h"
|
||||
# define wxDragImage wxGenericDragImage
|
||||
|
||||
#elif defined(__WXGTK__)
|
||||
#include "wx/generic/dragimgg.h"
|
||||
#define wxDragImage wxGenericDragImage
|
||||
# include "wx/generic/dragimgg.h"
|
||||
# define wxDragImage wxGenericDragImage
|
||||
|
||||
#elif defined(__WXX11__)
|
||||
#include "wx/generic/dragimgg.h"
|
||||
#define wxDragImage wxGenericDragImage
|
||||
# include "wx/generic/dragimgg.h"
|
||||
# define wxDragImage wxGenericDragImage
|
||||
|
||||
#elif defined(__WXMAC__)
|
||||
#include "wx/generic/dragimgg.h"
|
||||
#define wxDragImage wxGenericDragImage
|
||||
# include "wx/generic/dragimgg.h"
|
||||
# define wxDragImage wxGenericDragImage
|
||||
|
||||
#elif defined(__WXPM__)
|
||||
#include "wx/generic/dragimgg.h"
|
||||
#define wxDragImage wxGenericDragImage
|
||||
# include "wx/generic/dragimgg.h"
|
||||
# define wxDragImage wxGenericDragImage
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -754,7 +754,6 @@ public:
|
||||
*ypos = m_y;
|
||||
}
|
||||
|
||||
#ifndef __WIN16__
|
||||
void GetPosition(long *xpos, long *ypos) const
|
||||
{
|
||||
if (xpos)
|
||||
@@ -762,7 +761,6 @@ public:
|
||||
if (ypos)
|
||||
*ypos = (long)m_y;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Find the position of the event
|
||||
wxPoint GetPosition() const { return wxPoint(m_x, m_y); }
|
||||
@@ -905,13 +903,11 @@ public:
|
||||
if (ypos) *ypos = m_y;
|
||||
}
|
||||
|
||||
#ifndef __WIN16__
|
||||
void GetPosition(long *xpos, long *ypos) const
|
||||
{
|
||||
if (xpos) *xpos = (long)m_x;
|
||||
if (ypos) *ypos = (long)m_y;
|
||||
}
|
||||
#endif
|
||||
|
||||
wxPoint GetPosition() const
|
||||
{ return wxPoint(m_x, m_y); }
|
||||
|
@@ -39,8 +39,6 @@
|
||||
|
||||
#if defined(__VISUALC__) || ( defined(__MWERKS__) && defined( __INTEL__) )
|
||||
typedef _off_t off_t;
|
||||
#elif defined(__BORLANDC__) && defined(__WIN16__)
|
||||
typedef long off_t;
|
||||
#elif defined(__SYMANTEC__)
|
||||
typedef long off_t;
|
||||
#elif defined(__MWERKS__) && !defined(__INTEL__) && !defined(__MACH__)
|
||||
|
@@ -86,7 +86,7 @@ private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericImageList)
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxImageList has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
@@ -104,7 +104,7 @@ public:
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
|
||||
#endif // !__WXMSW__ || __WXUNIVERSAL__
|
||||
|
||||
#endif // __IMAGELISTH_G__
|
||||
|
||||
|
@@ -37,7 +37,7 @@ class WXDLLEXPORT wxDropTarget;
|
||||
class WXDLLEXPORT wxListItem;
|
||||
class WXDLLEXPORT wxListEvent;
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
|
||||
class WXDLLEXPORT wxListCtrl;
|
||||
#define wxImageListType wxImageList
|
||||
#else
|
||||
@@ -247,7 +247,7 @@ private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericListCtrl);
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxListCtrl has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
@@ -270,6 +270,6 @@ public:
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
|
||||
#endif // !__WXMSW__ || __WXUNIVERSAL__
|
||||
|
||||
#endif // __LISTCTRLH_G__
|
||||
|
@@ -495,7 +495,7 @@ private:
|
||||
DECLARE_NO_COPY_CLASS(wxGenericTreeCtrl)
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxTreeCtrl has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
@@ -518,7 +518,7 @@ public:
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
|
||||
#endif // !__WXMSW__ || __WXUNIVERSAL__
|
||||
|
||||
#endif // wxUSE_TREECTRL
|
||||
|
||||
|
@@ -26,14 +26,7 @@
|
||||
#ifndef _ISQL_H
|
||||
#define _ISQL_H
|
||||
|
||||
#if defined(__WIN16__)
|
||||
|
||||
#define SQL_API EXPORT CALLBACK
|
||||
#ifndef EXPORT
|
||||
#define EXPORT _export
|
||||
#endif
|
||||
|
||||
#elif defined(WIN32)
|
||||
#if defined(WIN32)
|
||||
#define SQL_API __stdcall
|
||||
|
||||
#ifndef FAR
|
||||
|
@@ -226,7 +226,7 @@
|
||||
// library without it if you have no use for it - this will result in a
|
||||
// somewhat smaller and faster operation.
|
||||
//
|
||||
// This is ignored under Win16, threads are only supported under Win32.
|
||||
// Threads are only supported under Win32.
|
||||
//
|
||||
// Default is 1
|
||||
//
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WIN32__) && wxUSE_ENH_METAFILE
|
||||
#if wxUSE_ENH_METAFILE
|
||||
#include "wx/msw/enhmeta.h"
|
||||
|
||||
// map all metafile classes to enh metafile
|
||||
@@ -33,7 +33,7 @@
|
||||
// this flag will be set if wxMetafile class is wxEnhMetaFile
|
||||
#define wxMETAFILE_IS_ENH
|
||||
#endif // wxUSE_WIN_METAFILES_ALWAYS
|
||||
#else // Win16
|
||||
#else // !wxUSE_ENH_METAFILE
|
||||
#include "wx/msw/metafile.h"
|
||||
#endif
|
||||
#elif defined(__WXPM__)
|
||||
|
@@ -32,8 +32,6 @@
|
||||
unsigned short Data3;
|
||||
unsigned char Data4[8];
|
||||
} UUID; // UUID = GUID = CLSID = LIBID = IID
|
||||
#else // WIN16
|
||||
#error "Don't know about UUIDs on this platform"
|
||||
#endif // WIN32
|
||||
#endif // UUID_DEFINED
|
||||
|
||||
|
@@ -299,14 +299,11 @@ inline bool wxIsCtrlDown()
|
||||
inline RECT wxGetWindowRect(HWND hwnd)
|
||||
{
|
||||
RECT rect;
|
||||
#ifdef __WIN16__
|
||||
::GetWindowRect(hwnd, &rect);
|
||||
#else // Win32
|
||||
|
||||
if ( !::GetWindowRect(hwnd, &rect) )
|
||||
{
|
||||
wxLogLastError(_T("GetWindowRect"));
|
||||
}
|
||||
#endif // Win16/32
|
||||
|
||||
return rect;
|
||||
}
|
||||
@@ -314,14 +311,11 @@ inline RECT wxGetWindowRect(HWND hwnd)
|
||||
inline RECT wxGetClientRect(HWND hwnd)
|
||||
{
|
||||
RECT rect;
|
||||
#ifdef __WIN16__
|
||||
::GetClientRect(hwnd, &rect);
|
||||
#else // Win32
|
||||
|
||||
if ( !::GetClientRect(hwnd, &rect) )
|
||||
{
|
||||
wxLogLastError(_T("GetClientRect"));
|
||||
}
|
||||
#endif // Win16/32
|
||||
|
||||
return rect;
|
||||
}
|
||||
|
@@ -74,9 +74,6 @@ public:
|
||||
// -------------------------------
|
||||
|
||||
// implement base class virtuals
|
||||
#ifdef __WIN16__
|
||||
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
|
||||
#endif // __WIN16__
|
||||
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||
|
||||
protected:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/msw/tbarmsw.h
|
||||
// Purpose: wxToolBar for Win16
|
||||
// Purpose: wxToolBar for older Windowses
|
||||
// Author: Julian Smart
|
||||
// Modified by: 13.12.99 by VZ during toolbar classes reorganization
|
||||
// Created: 01/02/97
|
||||
@@ -25,7 +25,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxButtonBarNameStr;
|
||||
class WXDLLEXPORT wxMemoryDC;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxToolBar for Win16
|
||||
// wxToolBar for older Windowses
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxToolBar : public wxToolBarBase
|
||||
|
@@ -147,12 +147,6 @@ public:
|
||||
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
|
||||
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||
|
||||
// In WIN16, need to override normal erasing because
|
||||
// Ctl3D doesn't use the wxWindows background colour.
|
||||
#ifdef __WIN16__
|
||||
void OnEraseBackground(wxEraseEvent& event);
|
||||
#endif
|
||||
|
||||
#if wxUSE_RICHEDIT
|
||||
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
||||
|
||||
|
@@ -311,7 +311,7 @@
|
||||
|
||||
/* to be changed for Win64! */
|
||||
# ifndef __WIN32__
|
||||
# define __WIN16__
|
||||
# error "__WIN32__ should be defined for Win32 and Win64, Win16 is not supported"
|
||||
# endif
|
||||
|
||||
/*
|
||||
|
@@ -55,7 +55,7 @@ protected:
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
#include "wx/generic/spinctlg.h"
|
||||
#elif defined(__WXMSW__) && defined(__WIN32__)
|
||||
#elif defined(__WXMSW__)
|
||||
#include "wx/msw/spinctrl.h"
|
||||
#elif defined(__WXPM__)
|
||||
#include "wx/os2/spinctrl.h"
|
||||
@@ -65,8 +65,6 @@ protected:
|
||||
#include "wx/generic/spinctlg.h"
|
||||
#elif defined(__WXMAC__)
|
||||
#include "wx/mac/spinctrl.h"
|
||||
#else // Win16 || !Win
|
||||
#include "wx/generic/spinctlg.h"
|
||||
#endif // platform
|
||||
|
||||
#define EVT_SPINCTRL(id, fn) \
|
||||
|
@@ -10,11 +10,7 @@
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
#include "wx/generic/treectlg.h"
|
||||
#elif defined(__WXMSW__)
|
||||
#ifdef __WIN16__
|
||||
#include "wx/generic/treectlg.h"
|
||||
#else
|
||||
#include "wx/msw/treectrl.h"
|
||||
#endif
|
||||
#elif defined(__WXMOTIF__)
|
||||
#include "wx/generic/treectlg.h"
|
||||
#elif defined(__WXGTK__)
|
||||
|
@@ -22,10 +22,7 @@
|
||||
|
||||
/* check whether we have wchar_t and which size it is if we do */
|
||||
#if !defined(wxUSE_WCHAR_T)
|
||||
#if defined(__WIN16__)
|
||||
/* no wchar_t under Win16 regadrless of compiler used */
|
||||
#define wxUSE_WCHAR_T 0
|
||||
#elif defined(__UNIX__)
|
||||
#if defined(__UNIX__)
|
||||
#if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || defined(__DARWIN__)
|
||||
#define wxUSE_WCHAR_T 1
|
||||
#else
|
||||
|
Reference in New Issue
Block a user