Corrected grey scrolling windows; added C++Builder 3.0 fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-08 14:30:22 +00:00
parent b597caaca8
commit 3f1af9204f
16 changed files with 91 additions and 21 deletions

View File

@@ -16,7 +16,9 @@
#pragma interface "checklst.h"
#endif
typedef unsigned int size_t;
// No!
// typedef unsigned int size_t;
#include <stddef.h>
#if !wxUSE_OWNER_DRAWN
#error "wxCheckListBox class requires owner-drawn functionality."

View File

@@ -23,6 +23,19 @@
#include "wx/gdicmn.h"
#include "wx/window.h"
// Clash with Windows header files
#ifdef StartDoc
#undef StartDoc
#endif
#ifdef DrawText
#undef DrawText
#endif
#ifdef GetCharWidth
#undef GetCharWidth
#endif
class WXDLLEXPORT wxDC: public wxObject
{
DECLARE_ABSTRACT_CLASS(wxDC)

View File

@@ -135,9 +135,6 @@
// Set this to 0 if your compiler can't cope
// with omission of prototype parameters.
#define wxUSE_C_MAIN 0
// Set to 1 to use main.c instead of main.cpp (UNIX only)
#define wxUSE_ODBC 1
// Define 1 to use ODBC classes

View File

@@ -34,7 +34,7 @@ class WXDLLEXPORT wxTextCtrl: public wxControl
// it complains about deriving a huge class from the huge class streambuf. !!
// Also, can't use streambuf if making or using a DLL :-(
#if (defined(__BORLANDC__) && !defined(__WIN32__)) || defined(__MWERKS__) || defined(_WINDLL) || defined(WXUSINGDLL) || defined(WXMAKINGDLL)
#if (defined(__BORLANDC__)) || defined(__MWERKS__) || defined(_WINDLL) || defined(WXUSINGDLL) || defined(WXMAKINGDLL)
#define NO_TEXT_WINDOW_STREAM
#endif

View File

@@ -108,6 +108,15 @@ private:
wxString m_data;
};
// Clash with Windows headers
#ifdef GetCharWidth
#undef GetCharWidth
#endif
#ifdef FindWindow
#undef FindWindow
#endif
class WXDLLEXPORT wxWindow : public wxEvtHandler
{
DECLARE_ABSTRACT_CLASS(wxWindow)

View File

@@ -23,11 +23,14 @@ class WXDLLEXPORT wxObject;
#if wxUSE_DYNAMIC_CLASSES
#ifdef __GNUWIN32__
// #ifdef __GNUWIN32__
#ifdef GetClassName
#undef GetClassName
#endif
#ifdef GetClassInfo
#undef GetClassInfo
#endif
// #endif
class WXDLLEXPORT wxClassInfo;
class WXDLLEXPORT wxInputStream;

View File

@@ -17,7 +17,10 @@
#endif
typedef wxColour wxColor;
typedef unsigned int size_t;
// No, don't do this: BC++ 5 complains that size_t already been defined.
// typedef unsigned int size_t;
#include <stddef.h>
// ----------------------------------------------------------------------------
// wxOwnerDrawn - a mix-in base class, derive from it to implement owner-drawn

View File

@@ -19,7 +19,7 @@
#define wxVERSION_STRING "wxWindows 2.0"
#define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
#define wxBETA_NUMBER 17
#define wxVERSION_FLOAT float(wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0))
#define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
#endif
// _WX_VERSIONH__