]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/notebook.cpp
Fixed doubled-up key effects in wxTextCtrl by resetting m_lastMsg to 0
[wxWidgets.git] / src / generic / notebook.cpp
index dca667945642c328344569540d31558e591e292d..3be3cd9634d6801cbc5d89f3515e80e0f0d99bd0 100644 (file)
@@ -29,7 +29,8 @@
 
 #include  <wx/string.h>
 #include  <wx/log.h>
-#include  <wx/imaglist.h>
+#include  <wx/settings.h>
+#include  <wx/generic/imaglist.h>
 #include  <wx/generic/notebook.h>
 #include  <wx/dcclient.h>
 
@@ -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).