X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/799690a0a9e8dd5d5d57f06d70feb19811483e70..27f35b6674b796e61986681261ec7a96bef93502:/src/mac/carbon/notebmac.cpp diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index 81ca5ebce6..7c72298654 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -205,7 +205,7 @@ int wxNotebook::SetSelection(int nPage) return m_nSelection ; ChangePage(m_nSelection, nPage); - SetControlValue( (ControlHandle) m_macControl , m_nSelection + 1 ) ; + SetControl32BitValue( (ControlHandle) m_macControl , m_nSelection + 1 ) ; return m_nSelection; } @@ -328,7 +328,7 @@ bool wxNotebook::InsertPage(int nPage, */ void wxNotebook::MacSetupTabs() { - SetControlMaximum( (ControlHandle) m_macControl , GetPageCount() ) ; + SetControl32BitMaximum( (ControlHandle) m_macControl , GetPageCount() ) ; wxNotebookPage *page; ControlTabInfoRec info; @@ -518,7 +518,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) { { wxNotebookEvent changing(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, m_windowId, - ::GetControlValue(control) - 1, m_nSelection); + ::GetControl32BitValue(control) - 1, m_nSelection); changing.SetEventObject(this); ProcessEvent(changing); @@ -529,7 +529,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) wxTheApp->s_lastMouseDown = 0 ; wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, m_windowId, - ::GetControlValue(control) - 1, m_nSelection); + ::GetControl32BitValue(control) - 1, m_nSelection); event.SetEventObject(this); ProcessEvent(event); @@ -543,7 +543,7 @@ void wxNotebook::OnMouse( wxMouseEvent &event ) void wxNotebook::MacHandleControlClick( WXWidget control , wxInt16 controlpart ) { #if 0 - wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, m_windowId , ::GetControlValue((ControlHandle)m_macControl) - 1, m_nSelection); + wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, m_windowId , ::GetControl32BitValue((ControlHandle)m_macControl) - 1, m_nSelection); event.SetEventObject(this); ProcessEvent(event);