Removed old __WXWINE__ support (obsoleted by new __WINE__ symbol)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-01-07 18:11:53 +00:00
parent eaa6418668
commit b4da152ea3
35 changed files with 34 additions and 204 deletions

View File

@@ -2358,7 +2358,7 @@ equivalent variable and GTK+ is version 1.2.3 or above.
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
TOOLKIT=MSW TOOLKIT=MSW
GUIDIST=MSW_DIST GUIDIST=MSW_DIST
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WINE__"
fi fi
if test "$wxUSE_MOTIF" = 1; then if test "$wxUSE_MOTIF" = 1; then

View File

@@ -254,7 +254,7 @@ typedef int wxWindowID;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// stdcall is used for all functions called by Windows under Windows // stdcall is used for all functions called by Windows under Windows
#if defined(__WINDOWS__) && !defined(__WXWINE__) #if defined(__WINDOWS__)
#if defined(__GNUWIN32__) #if defined(__GNUWIN32__)
#define wxSTDCALL __attribute__((stdcall)) #define wxSTDCALL __attribute__((stdcall))
#else #else
@@ -1931,7 +1931,7 @@ typedef WXHWND WXWidget;
typedef unsigned int WXWPARAM; typedef unsigned int WXWPARAM;
typedef long WXLPARAM; typedef long WXLPARAM;
#if !defined(__WIN32__) || defined(__GNUWIN32__) || defined(__WXWINE__) || defined(__WXMICROWIN__) #if !defined(__WIN32__) || defined(__GNUWIN32__) || defined(__WXMICROWIN__)
typedef int (*WXFARPROC)(); typedef int (*WXFARPROC)();
#else #else
typedef int (__stdcall *WXFARPROC)(); typedef int (__stdcall *WXFARPROC)();

View File

@@ -243,19 +243,5 @@ struct HH_AKLINK
#define QS_ALLPOSTMESSAGE 0x0100 #define QS_ALLPOSTMESSAGE 0x0100
#endif #endif
#ifdef __WXWINE__
#define LV_ITEMA LVITEMA
#define LV_ITEMW LVITEMW
#define LV_DISPINFOA NMLVDISPINFOA
#define LV_DISPINFOW NMLVDISPINFOW
#if wxUSE_UNICODE
#define LV_FINDINFO LVFINDINFOW
#else
#define LV_FINDINFO LVFINDINFOA
#endif
#endif
#endif #endif
// _WX_MISSING_H_ // _WX_MISSING_H_

View File

@@ -341,7 +341,7 @@
// For WINE // For WINE
#if defined(GetWindowStyle) || defined(__WXWINE__) #if defined(GetWindowStyle)
#undef GetWindowStyle #undef GetWindowStyle
#endif #endif

View File

@@ -39,16 +39,10 @@
#endif #endif
#endif #endif
#ifdef __WXWINE__ #ifdef __WINE__
#ifndef __WIN32__
#define __WIN32__
#endif
#ifndef __WIN95__ #ifndef __WIN95__
#define __WIN95__ #define __WIN95__
#endif #endif
#ifndef STRICT
#define STRICT
#endif
#endif /* WINE */ #endif /* WINE */
#if defined(TWIN32) && !defined(__TWIN32__) #if defined(TWIN32) && !defined(__TWIN32__)

View File

@@ -56,11 +56,6 @@
#include <commdlg.h> #include <commdlg.h>
#endif // Win16 #endif // Win16
#ifdef __WXWINE__
#include <cderr.h>
#include <commdlg.h>
#endif
#if defined(__WATCOMC__) || defined(__SC__) || defined(__SALFORDC__) #if defined(__WATCOMC__) || defined(__SC__) || defined(__SALFORDC__)
#include <windowsx.h> #include <windowsx.h>
#include <commdlg.h> #include <commdlg.h>
@@ -485,10 +480,7 @@ void wxPrintData::ConvertToNative()
//// Orientation //// Orientation
#ifndef __WXWINE__
devMode->dmOrientation = m_printOrientation; devMode->dmOrientation = m_printOrientation;
#endif
devMode->dmFields = DM_ORIENTATION;
//// Collation //// Collation
@@ -520,7 +512,6 @@ void wxPrintData::ConvertToNative()
devMode->dmFields |= DM_COLOR; devMode->dmFields |= DM_COLOR;
#ifndef __WXWINE__
//// Paper size //// Paper size
if (m_paperId == wxPAPER_NONE) if (m_paperId == wxPAPER_NONE)
@@ -544,7 +535,6 @@ void wxPrintData::ConvertToNative()
} }
} }
} }
#endif
//// Duplex //// Duplex
@@ -613,12 +603,10 @@ void wxPrintData::ConvertFromNative()
{ {
LPDEVMODE devMode = (LPDEVMODE)GlobalLock(hDevMode); LPDEVMODE devMode = (LPDEVMODE)GlobalLock(hDevMode);
#ifndef __WXWINE__
//// Orientation //// Orientation
if (devMode->dmFields & DM_ORIENTATION) if (devMode->dmFields & DM_ORIENTATION)
m_printOrientation = devMode->dmOrientation; m_printOrientation = devMode->dmOrientation;
#endif
//// Collation //// Collation
@@ -658,7 +646,6 @@ void wxPrintData::ConvertFromNative()
else else
m_colour = TRUE; m_colour = TRUE;
#ifndef __WXWINE__
//// Paper size //// Paper size
// We don't know size of user defined paper and some buggy drivers // We don't know size of user defined paper and some buggy drivers
@@ -712,7 +699,6 @@ void wxPrintData::ConvertFromNative()
m_paperSize.y = 0; m_paperSize.y = 0;
m_paperId = wxPAPER_NONE; m_paperId = wxPAPER_NONE;
} }
#endif
//// Duplex //// Duplex

View File

@@ -28,7 +28,7 @@
#if wxUSE_FILE #if wxUSE_FILE
// standard // standard
#if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__WXMICROWIN__) #if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXMICROWIN__)
#include <io.h> #include <io.h>
#ifndef __SALFORDC__ #ifndef __SALFORDC__

View File

@@ -75,7 +75,7 @@
#include <process.h> #include <process.h>
#include "wx/os2/private.h" #include "wx/os2/private.h"
#endif #endif
#if defined(__WINDOWS__) && !defined(__WXMICROWIN__) && !defined(__WXWINE__) #if defined(__WINDOWS__) && !defined(__WXMICROWIN__)
#if !defined( __GNUWIN32__ ) && !defined( __MWERKS__ ) && !defined(__SALFORDC__) #if !defined( __GNUWIN32__ ) && !defined( __MWERKS__ ) && !defined(__SALFORDC__)
#include <direct.h> #include <direct.h>
#include <dos.h> #include <dos.h>
@@ -1262,7 +1262,7 @@ bool wxMkdir(const wxString& dir, int perm)
// assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too // assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
// for the GNU compiler // for the GNU compiler
#if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) || defined(__WINE__) || defined(__WXMICROWIN__) #if (!(defined(__WXMSW__) || defined(__WXPM__) || defined(__DOS__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WINE__) || defined(__WXMICROWIN__)
if ( mkdir(wxFNCONV(dirname), perm) != 0 ) if ( mkdir(wxFNCONV(dirname), perm) != 0 )
#elif defined(__WXPM__) #elif defined(__WXPM__)
if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's?? if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's??

View File

@@ -486,7 +486,7 @@ wxMimeTypesManager::~wxMimeTypesManager()
bool wxMimeTypesManager::Unassociate(wxFileType *ft) bool wxMimeTypesManager::Unassociate(wxFileType *ft)
{ {
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__) #if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
return m_impl->Unassociate(ft); return m_impl->Unassociate(ft);
#else #else
return ft->Unassociate(); return ft->Unassociate();
@@ -596,7 +596,7 @@ size_t wxMimeTypesManager::EnumAllFileTypes(wxArrayString& mimetypes)
void wxMimeTypesManager::Initialize(int mcapStyle, void wxMimeTypesManager::Initialize(int mcapStyle,
const wxString& sExtraDir) const wxString& sExtraDir)
{ {
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__) #if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
EnsureImpl(); EnsureImpl();
m_impl->Initialize(mcapStyle, sExtraDir); m_impl->Initialize(mcapStyle, sExtraDir);
@@ -609,7 +609,7 @@ void wxMimeTypesManager::Initialize(int mcapStyle,
// and this function clears all the data from the manager // and this function clears all the data from the manager
void wxMimeTypesManager::ClearData() void wxMimeTypesManager::ClearData()
{ {
#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WXWINE__) && !defined(__WINE__) #if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
EnsureImpl(); EnsureImpl();
m_impl->ClearData(); m_impl->ClearData();

View File

@@ -784,12 +784,6 @@ size_t IC_CharSet::WC2MB(char *buf, const wchar_t *psz, size_t n)
#if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__) #if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXUNIVERSAL__)
#ifdef __WXWINE__
#define WINE_CAST (WCHAR *)
#else
#define WINE_CAST
#endif
extern long wxCharsetToCodepage(const wxChar *charset); // from utils.cpp extern long wxCharsetToCodepage(const wxChar *charset); // from utils.cpp
class CP_CharSet : public wxCharacterSet class CP_CharSet : public wxCharacterSet
@@ -809,7 +803,7 @@ public:
0, // flags (none) 0, // flags (none)
psz, // input string psz, // input string
-1, // its length (NUL-terminated) -1, // its length (NUL-terminated)
WINE_CAST buf, // output string buf, // output string
buf ? n : 0 // size of output buffer buf ? n : 0 // size of output buffer
); );
@@ -824,7 +818,7 @@ public:
( (
m_CodePage, // code page m_CodePage, // code page
0, // flags (none) 0, // flags (none)
WINE_CAST psz, // input string psz, // input string
-1, // it is (wide) NUL-terminated -1, // it is (wide) NUL-terminated
buf, // output buffer buf, // output buffer
buf ? n : 0, // and its size buf ? n : 0, // and its size

View File

@@ -57,8 +57,7 @@
// FIXME - Mingw32 1.0 has both _getdrive() and _chdrive(). For now, let's assume // FIXME - Mingw32 1.0 has both _getdrive() and _chdrive(). For now, let's assume
// older releases don't, but it should be verified and the checks modified // older releases don't, but it should be verified and the checks modified
// accordingly. // accordingly.
#if !defined(__WXWINE__) && (!defined(__GNUWIN32__) || \ #if !defined(__GNUWIN32__) || (defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 1)
(defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 1))
#include <direct.h> #include <direct.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
@@ -381,8 +380,7 @@ bool wxIsDriveAvailable(const wxString& dirName)
if (dirName.Len() == 3 && dirName[(size_t)1] == wxT(':')) if (dirName.Len() == 3 && dirName[(size_t)1] == wxT(':'))
{ {
wxString dirNameLower(dirName.Lower()); wxString dirNameLower(dirName.Lower());
#if defined(__WXWINE__) || (defined(__GNUWIN32__) && \ #if defined(__GNUWIN32__) && !(defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 1)
!(defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 1))
success = wxPathExists(dirNameLower); success = wxPathExists(dirNameLower);
#else #else
int currentDrive = _getdrive(); int currentDrive = _getdrive();

View File

@@ -96,7 +96,7 @@ wxAcceleratorTable::wxAcceleratorTable(const wxString& resource)
extern int wxCharCodeWXToMSW(int id, bool *isVirtual); extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
// Create from an array // Create from an array
#if !defined(__WIN16__) && !defined(__TWIN32__) && !defined(__WXWINE__) #if !defined(__WIN16__) && !defined(__TWIN32__)
wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]) wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
{ {
// Not available in WIN16 // Not available in WIN16

View File

@@ -44,7 +44,7 @@
#include <windows.h> #include <windows.h>
#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__) #if !defined(__WIN32__) || defined(__SALFORDC__)
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -16,14 +16,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#ifndef __WXWINE__
#include <io.h> #include <io.h>
#endif
#ifdef __WXWINE__
#define NPSTR LPVOID
#endif
#include <windows.h> #include <windows.h>
#if defined(__MWERKS__) #if defined(__MWERKS__)

View File

@@ -41,7 +41,7 @@
#include "wx/dcprint.h" #include "wx/dcprint.h"
#include "math.h" #include "math.h"
#if wxUSE_COMMON_DIALOGS || defined(__WXWINE__) #if wxUSE_COMMON_DIALOGS
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -46,10 +46,6 @@
#include <windows.h> #include <windows.h>
#include <ddeml.h> #include <ddeml.h>
#ifdef __WXWINE__
#define PCONVCONTEXT CONVCONTEXT*
#endif
#if defined(__TWIN32__) || defined(__GNUWIN32_OLD__) #if defined(__TWIN32__) || defined(__GNUWIN32_OLD__)
#include "wx/msw/gnuwin32/extra.h" #include "wx/msw/gnuwin32/extra.h"
#endif #endif

View File

@@ -54,7 +54,6 @@ DEFINE_EVENT_TYPE(wxEVT_DIALUP_DISCONNECTED)
(!defined(__GNUWIN32__) || wxCHECK_W32API_VERSION(0, 5)) && \ (!defined(__GNUWIN32__) || wxCHECK_W32API_VERSION(0, 5)) && \
!defined(__GNUWIN32_OLD__) && \ !defined(__GNUWIN32_OLD__) && \
!defined(__WATCOMC__) && \ !defined(__WATCOMC__) && \
!defined(__WXWINE__) && \
!defined(__WINE__) && \ !defined(__WINE__) && \
(!defined(__VISUALC__) || (__VISUALC__ >= 1020)) (!defined(__VISUALC__) || (__VISUALC__ >= 1020))

View File

@@ -353,7 +353,7 @@ static HANDLE DibFromBitmap(HBITMAP hbm, DWORD biStyle, WORD biBits, HPALETTE hp
static DWORD PASCAL lread(int fh, void far *pv, DWORD ul) static DWORD PASCAL lread(int fh, void far *pv, DWORD ul)
{ {
DWORD ulT = ul; DWORD ulT = ul;
#if defined(WINNT) || defined(__WIN32__) || defined(__WIN32__) || defined(__WXWINE__) #if defined(WINNT) || defined(__WIN32__) || defined(__WIN32__)
BYTE *hp = (BYTE *) pv; BYTE *hp = (BYTE *) pv;
#else #else
BYTE huge *hp = (BYTE huge *) pv; BYTE huge *hp = (BYTE huge *) pv;
@@ -383,7 +383,7 @@ static DWORD PASCAL lread(int fh, void far *pv, DWORD ul)
static DWORD PASCAL lwrite(int fh, VOID FAR *pv, DWORD ul) static DWORD PASCAL lwrite(int fh, VOID FAR *pv, DWORD ul)
{ {
DWORD ulT = ul; DWORD ulT = ul;
#if defined(WINNT) || defined(__WIN32__) || defined(__WIN32__) || defined(__WXWINE__) #if defined(WINNT) || defined(__WIN32__) || defined(__WIN32__)
BYTE *hp = (BYTE *) pv; BYTE *hp = (BYTE *) pv;
#else #else
BYTE huge *hp = (BYTE huge *) pv; BYTE huge *hp = (BYTE huge *) pv;
@@ -639,9 +639,6 @@ static BOOL PASCAL MakeBitmapAndPalette(HDC hDC, HANDLE hDIB,
****************************************************************************/ ****************************************************************************/
HPALETTE wxMakeDIBPalette(LPBITMAPINFOHEADER lpInfo) HPALETTE wxMakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
{ {
#ifdef __WXWINE__
return (FALSE);
#else
LPLOGPALETTE npPal; LPLOGPALETTE npPal;
RGBQUAD far *lpRGB; RGBQUAD far *lpRGB;
HPALETTE hLogPal; HPALETTE hLogPal;
@@ -689,8 +686,6 @@ HPALETTE wxMakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
*/ */
else else
return((HPALETTE) GetStockObject(DEFAULT_PALETTE)); return((HPALETTE) GetStockObject(DEFAULT_PALETTE));
#endif
} }
bool wxLoadIntoBitmap(wxChar *filename, wxBitmap *bitmap, wxPalette **pal) bool wxLoadIntoBitmap(wxChar *filename, wxBitmap *bitmap, wxPalette **pal)

View File

@@ -32,12 +32,6 @@
#include "wx/msw/dibutils.h" #include "wx/msw/dibutils.h"
#ifdef __WXWINE__
/* Why module.h? No longer finds this header.
#include <module.h>
*/
#endif
#if defined(__WIN32__) #if defined(__WIN32__)
#if !defined(__MWERKS__) && !defined(__SALFORDC__) #if !defined(__MWERKS__) && !defined(__SALFORDC__)
#include <memory.h> // for _fmemcpy() #include <memory.h> // for _fmemcpy()
@@ -115,11 +109,7 @@ void wxClearSystemPalette(void)
} }
// *** Create, select, realize, deselect, and delete the palette // *** Create, select, realize, deselect, and delete the palette
#ifdef __WXWINE__
ScreenDC = GetDC((HWND)NULL);
#else
ScreenDC = GetDC(NULL); ScreenDC = GetDC(NULL);
#endif
ScreenPalette = CreatePalette((LOGPALETTE *)&Palette); ScreenPalette = CreatePalette((LOGPALETTE *)&Palette);
if (ScreenPalette) if (ScreenPalette)
@@ -130,11 +120,7 @@ void wxClearSystemPalette(void)
bOK = DeleteObject(ScreenPalette); bOK = DeleteObject(ScreenPalette);
} }
#ifdef __WXWINE__
nOK = ReleaseDC((HWND)NULL, ScreenDC);
#else
nOK = ReleaseDC(NULL, ScreenDC); nOK = ReleaseDC(NULL, ScreenDC);
#endif
return; return;
} }

View File

@@ -193,14 +193,7 @@ wxEnhMetaFileDC::wxEnhMetaFileDC(const wxString& filename,
rect.bottom = height; rect.bottom = height;
// CreateEnhMetaFile() wants them in HIMETRIC // CreateEnhMetaFile() wants them in HIMETRIC
#ifdef __WXWINE__
LONG r, b;
PixelToHIMETRIC(&r, &b);
rect.right = r;
rect.bottom = b;
#else
PixelToHIMETRIC(&rect.right, &rect.bottom); PixelToHIMETRIC(&rect.right, &rect.bottom);
#endif
pRect = &rect; pRect = &rect;
} }
@@ -301,10 +294,6 @@ bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf)
} }
else else
{ {
#ifdef __WXWINE__
wxFAIL_MSG( _T("unsupported format") );
return FALSE;
#else
wxASSERT_MSG( format == wxDF_METAFILE, _T("unsupported format") ); wxASSERT_MSG( format == wxDF_METAFILE, _T("unsupported format") );
// convert to WMF // convert to WMF
@@ -346,7 +335,6 @@ bool wxEnhMetaFileDataObject::GetDataHere(const wxDataFormat& format, void *buf)
mfpict->yExt = sizeMF.y; mfpict->yExt = sizeMF.y;
PixelToHIMETRIC(&mfpict->xExt, &mfpict->yExt); PixelToHIMETRIC(&mfpict->xExt, &mfpict->yExt);
#endif
} }
return TRUE; return TRUE;

View File

@@ -37,7 +37,7 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__) #if !defined(__WIN32__) || defined(__SALFORDC__)
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -43,7 +43,7 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__) #if !defined(__WIN32__) || defined(__SALFORDC__)
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -38,7 +38,7 @@
#include "wx/fontdlg.h" #include "wx/fontdlg.h"
#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__) #if !defined(__WIN32__) || defined(__SALFORDC__)
#include <windows.h> #include <windows.h>
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -148,14 +148,8 @@ bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
return TRUE; return TRUE;
} }
#if defined(__WXWINE__) #if defined(__GNUWIN32__) && !defined(__CYGWIN10__) && !wxCHECK_W32API_VERSION( 1, 1 ) && !wxUSE_NORLANDER_HEADERS
#define wxFONTENUMPROC FONTENUMPROCEX #define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
#elif (defined(__GNUWIN32__) && !defined(__CYGWIN10__) && !wxCHECK_W32API_VERSION( 1, 1 ))
#if wxUSE_NORLANDER_HEADERS
#define wxFONTENUMPROC FONTENUMPROC
#else
#define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
#endif
#else #else
#define wxFONTENUMPROC FONTENUMPROC #define wxFONTENUMPROC FONTENUMPROC
#endif #endif

View File

@@ -36,12 +36,6 @@
#include <windowsx.h> #include <windowsx.h>
#ifdef __WXWINE__
#if defined(GetWindowStyle)
#undef GetWindowStyle
#endif
#endif
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/log.h" #include "wx/log.h"
@@ -55,33 +49,6 @@
#endif #endif
#endif #endif
#ifdef __WXWINE__
#ifndef ListBox_SetItemData
#define ListBox_SetItemData(hwndCtl, index, data) \
((int)(DWORD)SendMessage((hwndCtl), LB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data)))
#endif
#ifndef ListBox_GetHorizontalExtent
#define ListBox_GetHorizontalExtent(hwndCtl) \
((int)(DWORD)SendMessage((hwndCtl), LB_GETHORIZONTALEXTENT, 0L, 0L))
#endif
#ifndef ListBox_GetSelCount
#define ListBox_GetSelCount(hwndCtl) \
((int)(DWORD)SendMessage((hwndCtl), LB_GETSELCOUNT, 0L, 0L))
#endif
#ifndef ListBox_GetSelItems
#define ListBox_GetSelItems(hwndCtl, cItems, lpItems) \
((int)(DWORD)SendMessage((hwndCtl), LB_GETSELITEMS, (WPARAM)(int)(cItems), (LPARAM)(int *)(lpItems)))
#endif
#ifndef ListBox_GetTextLen
#define ListBox_GetTextLen(hwndCtl, index) \
((int)(DWORD)SendMessage((hwndCtl), LB_GETTEXTLEN, (WPARAM)(int)(index), 0L))
#endif
#ifndef ListBox_GetText
#define ListBox_GetText(hwndCtl, index, lpszBuffer) \
((int)(DWORD)SendMessage((hwndCtl), LB_GETTEXT, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpszBuffer)))
#endif
#endif
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
// ============================================================================ // ============================================================================

View File

@@ -119,12 +119,7 @@ private:
#if wxUSE_WCHAR_T #if wxUSE_WCHAR_T
if ( (item.mask & LVIF_TEXT) && item.pszText ) if ( (item.mask & LVIF_TEXT) && item.pszText )
{ {
#ifdef __WXWINE__
// FIXME
m_buf = new wxWC2WXbuf(wxConvLocal.cWC2WX((const __wchar_t* ) item.pszText));
#else
m_buf = new wxWC2WXbuf(wxConvLocal.cWC2WX(item.pszText)); m_buf = new wxWC2WXbuf(wxConvLocal.cWC2WX(item.pszText));
#endif
m_item->pszText = (wxChar*)m_buf->data(); m_item->pszText = (wxChar*)m_buf->data();
} }
else else

View File

@@ -72,15 +72,11 @@ HINSTANCE wxhInstance = 0;
#if !defined(_WINDLL) #if !defined(_WINDLL)
#if defined(__WXWINE__) #if defined(__TWIN32__) || defined(__WXMICROWIN__)
#define HINSTANCE HINSTANCE__*
extern "C"
#elif defined(__TWIN32__) || defined(__WXMICROWIN__)
#define HINSTANCE HANDLE #define HINSTANCE HANDLE
extern "C" extern "C"
#endif // WINE #endif
int PASCAL WinMain(HINSTANCE hInstance, int PASCAL WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance, HINSTANCE hPrevInstance,

View File

@@ -24,7 +24,7 @@
// Watcom C++ gives a linker error if this is compiled in. // Watcom C++ gives a linker error if this is compiled in.
// With Borland C++, all samples crash if this is compiled in. // With Borland C++, all samples crash if this is compiled in.
#if wxUSE_OLE &&!defined(__WATCOMC__) && !(defined(__BORLANDC__) && (__BORLANDC__ < 0x520)) && !defined(__CYGWIN10__) && !defined(__WXWINE__) #if wxUSE_OLE &&!defined(__WATCOMC__) && !(defined(__BORLANDC__) && (__BORLANDC__ < 0x520)) && !defined(__CYGWIN10__)
#define _FORCENAMELESSUNION #define _FORCENAMELESSUNION
#include "wx/log.h" #include "wx/log.h"

View File

@@ -55,10 +55,6 @@
#include "wx/msw/dib.h" #include "wx/msw/dib.h"
#ifdef __WXWINE__
#define LPDROPFILES DROPFILES*
#endif
#ifndef CFSTR_SHELLURL #ifndef CFSTR_SHELLURL
#define CFSTR_SHELLURL _T("UniformResourceLocator") #define CFSTR_SHELLURL _T("UniformResourceLocator")
#endif #endif

View File

@@ -136,10 +136,6 @@ void Uuid::Create()
// set the value // set the value
bool Uuid::Set(const wxChar *pc) bool Uuid::Set(const wxChar *pc)
{ {
#ifdef __WXWINE__
wxFAIL_MSG(_T("UUid::Set not implemented"));
return FALSE;
#else
// get UUID from string // get UUID from string
#ifdef _UNICODE #ifdef _UNICODE
if ( UuidFromString((unsigned short *)pc, &m_uuid) != RPC_S_OK) if ( UuidFromString((unsigned short *)pc, &m_uuid) != RPC_S_OK)
@@ -160,7 +156,6 @@ bool Uuid::Set(const wxChar *pc)
UuidToCForm(); UuidToCForm();
return TRUE; return TRUE;
#endif
} }
// stores m_uuid in m_pszCForm in a format required by // stores m_uuid in m_pszCForm in a format required by

View File

@@ -73,7 +73,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
{ {
UnRef(); UnRef();
#if defined(__WXWINE__) || defined(__WXMICROWIN__) #if defined(__WXMICROWIN__)
return (FALSE); return (FALSE);

View File

@@ -595,15 +595,6 @@ DWORD CALLBACK wxRichEditStreamIn(DWORD dwCookie, BYTE *buf, LONG cb, LONG *pcb)
extern long wxEncodingToCodepage(wxFontEncoding encoding); // from utils.cpp extern long wxEncodingToCodepage(wxFontEncoding encoding); // from utils.cpp
#ifdef __WXWINE__
bool wxTextCtrl::StreamIn(const wxString& value,
wxFontEncoding WXUNUSED(encoding),
bool selectionOnly)
{
return FALSE;
}
#else // !__WXWINE__
#if wxUSE_UNICODE_MSLU #if wxUSE_UNICODE_MSLU
bool wxTextCtrl::StreamIn(const wxString& value, bool wxTextCtrl::StreamIn(const wxString& value,
wxFontEncoding WXUNUSED(encoding), wxFontEncoding WXUNUSED(encoding),
@@ -676,8 +667,6 @@ bool wxTextCtrl::StreamIn(const wxString& value,
return TRUE; return TRUE;
} }
#endif // __WXWINE__/!__WXWINE__
#endif // wxUSE_RICHEDIT #endif // wxUSE_RICHEDIT
void wxTextCtrl::WriteText(const wxString& value) void wxTextCtrl::WriteText(const wxString& value)
@@ -715,7 +704,7 @@ void wxTextCtrl::DoWriteText(const wxString& value, bool selectionOnly)
} }
#endif // wxUSE_UNICODE_MSLU #endif // wxUSE_UNICODE_MSLU
#if !wxUSE_UNICODE && !defined(__WXWINE__) #if !wxUSE_UNICODE
// next check if the text we're inserting must be shown in a non // next check if the text we're inserting must be shown in a non
// default charset -- this only works for RichEdit > 1.0 // default charset -- this only works for RichEdit > 1.0
if ( GetRichVersion() > 1 ) if ( GetRichVersion() > 1 )
@@ -1758,7 +1747,6 @@ void wxTextCtrl::OnRightClick(wxMouseEvent& event)
bool wxTextCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) bool wxTextCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
{ {
#ifndef __WXWINE__
NMHDR *hdr = (NMHDR* )lParam; NMHDR *hdr = (NMHDR* )lParam;
switch ( hdr->code ) switch ( hdr->code )
{ {
@@ -1845,7 +1833,6 @@ bool wxTextCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
} }
return TRUE; return TRUE;
} }
#endif
// not processed, leave it to the base class // not processed, leave it to the base class
return wxTextCtrlBase::MSWOnNotify(idCtrl, lParam, result); return wxTextCtrlBase::MSWOnNotify(idCtrl, lParam, result);
@@ -1903,9 +1890,6 @@ bool wxTextCtrl::SetForegroundColour(const wxColour& colour)
bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style) bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
{ {
#ifdef __WXWINE__
return FALSE;
#else
if ( !IsRich() ) if ( !IsRich() )
{ {
// can't do it with normal text control // can't do it with normal text control
@@ -2035,7 +2019,6 @@ bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style)
} }
return ok; return ok;
#endif
} }
bool wxTextCtrl::SetDefaultStyle(const wxTextAttr& style) bool wxTextCtrl::SetDefaultStyle(const wxTextAttr& style)

View File

@@ -48,7 +48,7 @@
#include "wx/timer.h" #include "wx/timer.h"
#if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__) && !defined(__WXMICROWIN__) #if !defined(__GNUWIN32__) && !defined(__SALFORDC__) && !defined(__WXMICROWIN__)
#include <direct.h> #include <direct.h>
#ifndef __MWERKS__ #ifndef __MWERKS__
@@ -78,7 +78,7 @@
#include <lm.h> #include <lm.h>
#endif // USE_NET_API #endif // USE_NET_API
#if defined(__WIN32__) && !defined(__WXWINE__) && !defined(__WXMICROWIN__) #if defined(__WIN32__) && !defined(__WXMICROWIN__)
#include <io.h> #include <io.h>
#ifndef __GNUWIN32__ #ifndef __GNUWIN32__
@@ -887,7 +887,6 @@ bool wxShutdown(wxShutdownFlags wFlags)
bOK = ::OpenProcessToken(GetCurrentProcess(), bOK = ::OpenProcessToken(GetCurrentProcess(),
TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,
&hToken) != 0; &hToken) != 0;
#ifndef __WXWINE__
if ( bOK ) if ( bOK )
{ {
TOKEN_PRIVILEGES tkp; TOKEN_PRIVILEGES tkp;
@@ -906,7 +905,6 @@ bool wxShutdown(wxShutdownFlags wFlags)
// Cannot test the return value of AdjustTokenPrivileges. // Cannot test the return value of AdjustTokenPrivileges.
bOK = ::GetLastError() == ERROR_SUCCESS; bOK = ::GetLastError() == ERROR_SUCCESS;
} }
#endif
} }
if ( bOK ) if ( bOK )

View File

@@ -47,7 +47,7 @@
#include <ctype.h> #include <ctype.h>
#if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__) && !defined(__WXMICROWIN__) #if !defined(__GNUWIN32__) && !defined(__SALFORDC__) && !defined(__WXMICROWIN__)
#include <direct.h> #include <direct.h>
#ifndef __MWERKS__ #ifndef __MWERKS__
#include <dos.h> #include <dos.h>
@@ -59,7 +59,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#if defined(__WIN32__) && !defined(__WXWINE__) && !defined(__WXMICROWIN__) #if defined(__WIN32__) && !defined(__WXMICROWIN__)
#include <io.h> #include <io.h>
#ifndef __GNUWIN32__ #ifndef __GNUWIN32__
@@ -347,10 +347,6 @@ wxPipeInputStream::~wxPipeInputStream()
bool wxPipeInputStream::CanRead() const bool wxPipeInputStream::CanRead() const
{ {
// FIXME
#ifdef __WXWINE__
return FALSE;
#else // !Wine
if ( !IsOpened() ) if ( !IsOpened() )
return FALSE; return FALSE;
@@ -387,7 +383,6 @@ bool wxPipeInputStream::CanRead() const
} }
return nAvailable != 0; return nAvailable != 0;
#endif // Wine/!Wine
} }
size_t wxPipeInputStream::OnSysRead(void *buffer, size_t len) size_t wxPipeInputStream::OnSysRead(void *buffer, size_t len)

View File

@@ -1463,14 +1463,10 @@ void wxWindowMSW::Refresh(bool eraseBack, const wxRect *rect)
void wxWindowMSW::Update() void wxWindowMSW::Update()
{ {
#ifdef __WXWINE__
::UpdateWindow(GetHwnd());
#else
if ( !::UpdateWindow(GetHwnd()) ) if ( !::UpdateWindow(GetHwnd()) )
{ {
wxLogLastError(_T("UpdateWindow")); wxLogLastError(_T("UpdateWindow"));
} }
#endif
#if defined(__WIN32__) && !defined(__WXMICROWIN__) #if defined(__WIN32__) && !defined(__WXMICROWIN__)
// just calling UpdateWindow() is not enough, what we did in our WM_PAINT // just calling UpdateWindow() is not enough, what we did in our WM_PAINT