X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..1f3943e0276719ed5fc94bb93765df69f91ba10c:/src/mac/notebook.cpp diff --git a/src/mac/notebook.cpp b/src/mac/notebook.cpp index 3cb269c3cc..862bbb205c 100644 --- a/src/mac/notebook.cpp +++ b/src/mac/notebook.cpp @@ -41,6 +41,9 @@ const short kwxMacTabBottomMargin = 16 ; // event table // ---------------------------------------------------------------------------- +DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING) + BEGIN_EVENT_TABLE(wxNotebook, wxControl) EVT_NOTEBOOK_PAGE_CHANGED(-1, wxNotebook::OnSelChange) @@ -254,8 +257,7 @@ bool wxNotebook::InsertPage(int nPage, tie.version = 0 ; tie.iconSuiteID = 0 ; - strcpy( (char*) tie.name , strText ) ; - c2pstr( (char*) tie.name ) ; + c2pstrcpy( (StringPtr) tie.name , strText ) ; SetControlData( m_macControl, nPage + 1, kControlTabInfoTag , sizeof( ControlTabInfoRec) , (char*) &tie ) ; SetControlData( m_macControl, m_nSelection + 1, kControlTabEnabledFlagTag, sizeof( Boolean ), (Ptr)&enabled );