X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6d94998fcbdb3ce60774e38c0d4b6ee20c6798..b11708106f93d28dbb47218b18e02674ad6c0cdb:/include/wx/generic/notebook.h diff --git a/include/wx/generic/notebook.h b/include/wx/generic/notebook.h index df4e960314..99fb13d1ad 100644 --- a/include/wx/generic/notebook.h +++ b/include/wx/generic/notebook.h @@ -226,6 +226,29 @@ protected: // ---------------------------------------------------------------------------- typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&); +// Because of name truncation! +#if defined(__BORLANDC__) && defined(__WIN16__) + +#define EVT_NOTEBOOK_PAGE_CHANGED(id, fn) \ + { \ + wxEVT_COMMAND_NB_PAGE_CHANGED, \ + id, \ + -1, \ + (wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn, \ + NULL \ + }, + +#define EVT_NOTEBOOK_PAGE_CHANGING(id, fn) \ + { \ + wxEVT_COMMAND_NB_PAGE_CHANGING, \ \ + id, \ + -1, \ + (wxObjectEventFunction)(wxEventFunction)(wxNotebookEventFunction) &fn, \ + NULL \ + }, + +#else + #define EVT_NOTEBOOK_PAGE_CHANGED(id, fn) \ { \ wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, \ @@ -244,4 +267,6 @@ typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&); NULL \ }, +#endif + #endif // _WX_NOTEBOOK_H_