Removed WIN16 references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b073db94f2
commit
aaace8739a
@ -205,12 +205,6 @@ private:
|
|||||||
// event types and macros for them
|
// event types and macros for them
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__BORLANDC__) && defined(__WIN16__)
|
|
||||||
// For 16-bit BC++, these 2 would be identical otherwise (truncated)
|
|
||||||
#define wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED wxEVT_COMMAND_NB_PAGE_CHANGED
|
|
||||||
#define wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING wxEVT_COMMAND_NB_PAGE_CHANGING
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
BEGIN_DECLARE_EVENT_TYPES()
|
||||||
DECLARE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 802)
|
DECLARE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 802)
|
||||||
DECLARE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 803)
|
DECLARE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 803)
|
||||||
@ -218,28 +212,6 @@ END_DECLARE_EVENT_TYPES()
|
|||||||
|
|
||||||
typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&);
|
typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&);
|
||||||
|
|
||||||
// Truncation in 16-bit BC++ means we need to define these differently
|
|
||||||
#if defined(__BORLANDC__) && defined(__WIN16__)
|
|
||||||
#define EVT_NOTEBOOK_PAGE_CHANGED(id, fn) \
|
|
||||||
DECLARE_EVENT_TABLE_ENTRY( \
|
|
||||||
wxEVT_COMMAND_NB_PAGE_CHANGED, \
|
|
||||||
id, \
|
|
||||||
-1, \
|
|
||||||
(wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn, \
|
|
||||||
NULL \
|
|
||||||
),
|
|
||||||
|
|
||||||
#define EVT_NOTEBOOK_PAGE_CHANGING(id, fn) \
|
|
||||||
DECLARE_EVENT_TABLE_ENTRY( \
|
|
||||||
wxEVT_COMMAND_NB_PAGE_CHANGING, \
|
|
||||||
id, \
|
|
||||||
-1, \
|
|
||||||
(wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn, \
|
|
||||||
NULL \
|
|
||||||
),
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define EVT_NOTEBOOK_PAGE_CHANGED(id, fn) \
|
#define EVT_NOTEBOOK_PAGE_CHANGED(id, fn) \
|
||||||
DECLARE_EVENT_TABLE_ENTRY( \
|
DECLARE_EVENT_TABLE_ENTRY( \
|
||||||
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, \
|
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, \
|
||||||
@ -258,8 +230,6 @@ typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&);
|
|||||||
NULL \
|
NULL \
|
||||||
),
|
),
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxNotebook class itself
|
// wxNotebook class itself
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -267,11 +237,7 @@ typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&);
|
|||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
#include "wx/univ/notebook.h"
|
#include "wx/univ/notebook.h"
|
||||||
#elif defined(__WXMSW__)
|
#elif defined(__WXMSW__)
|
||||||
#ifdef __WIN16__
|
|
||||||
#include "wx/generic/notebook.h"
|
|
||||||
#else
|
|
||||||
#include "wx/msw/notebook.h"
|
#include "wx/msw/notebook.h"
|
||||||
#endif
|
|
||||||
#elif defined(__WXMOTIF__)
|
#elif defined(__WXMOTIF__)
|
||||||
#include "wx/generic/notebook.h"
|
#include "wx/generic/notebook.h"
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
|
Loading…
Reference in New Issue
Block a user