X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/793f619f7f0e5b1eaba6a9e3f731462c1893b7f7..a0d8a3052817fef6eef27e9a6ab8802495a39db8:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index 10b0ce683e..3be3cd9634 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -626,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).