X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1dc9f8394c1488ad8e7d945e6f943f7b34554ce..8907a7e2c0fb61ecca0b6434dd69ee42b7ee1db6:/include/wx/notebook.h diff --git a/include/wx/notebook.h b/include/wx/notebook.h index d6b68457f0..2687911ed4 100644 --- a/include/wx/notebook.h +++ b/include/wx/notebook.h @@ -54,7 +54,7 @@ enum typedef wxWindow wxNotebookPage; // so far, any window can be a page -extern WXDLLEXPORT_DATA(const wxChar) wxNotebookNameStr[]; +extern WXDLLEXPORT_DATA(const char) wxNotebookNameStr[]; // ---------------------------------------------------------------------------- // wxNotebookBase: define wxNotebook interface @@ -106,6 +106,9 @@ public: // new is -1) void SendPageChangedEvent(int nPageOld, int nPageNew = -1); + // wxBookCtrlBase overrides this method to return false but we do need + // focus because we have tabs + virtual bool AcceptsFocus() const { return wxControl::AcceptsFocus(); } protected: DECLARE_NO_COPY_CLASS(wxNotebookBase) @@ -135,10 +138,8 @@ private: DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxNotebookEvent) }; -BEGIN_DECLARE_EVENT_TYPES() - DECLARE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 802) - DECLARE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 803) -END_DECLARE_EVENT_TYPES() +extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED; +extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING; typedef void (wxEvtHandler::*wxNotebookEventFunction)(wxNotebookEvent&);