X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f60d0f944a6ce86bce59901e7ea3811f0992bce7..169935ad4ed842421ef24470a06d1aa298f90fbe:/src/generic/notebook.cpp?ds=inline diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index dca6679456..3be3cd9634 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -29,7 +29,8 @@ #include #include -#include +#include +#include #include #include @@ -625,7 +626,12 @@ void wxNotebookTabView::OnTabActivate(int activateId, int deactivateId) if (!m_notebook) return; +// Because of name truncation! +#if defined(__BORLANDC__) && defined(__WIN16__) + wxNotebookEvent event(wxEVT_COMMAND_NB_PAGE_CHANGED, m_notebook->GetId()); +#else wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, m_notebook->GetId()); +#endif // Translate from wxTabView's ids (which aren't position-dependent) // to wxNotebook's (which are).