X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f8845289521c7f53e95b6dfd8275daab8b05639..4860d40db4a78d8c2fd20d0b7b75136d749050eb:/src/mac/classic/listbox.cpp diff --git a/src/mac/classic/listbox.cpp b/src/mac/classic/listbox.cpp index a0d3e05482..e68a7f9b72 100644 --- a/src/mac/classic/listbox.cpp +++ b/src/mac/classic/listbox.cpp @@ -265,7 +265,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID id, long result ; wxStAppResource resload ; - m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , + m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , (style & wxLB_HSCROLL) ? kwxMacListWithVerticalAndHorizontalScrollbar : kwxMacListWithVerticalScrollbar , 0 , 0, kControlListBoxProc , (long) this ) ; ::GetControlData( (ControlHandle) m_macControl , kControlNoPart , kControlListBoxListHandleTag , @@ -515,7 +515,7 @@ void wxListBox::Clear() MacClear() ; } -void wxListBox::SetSelection(int N, bool select) +void wxListBox::DoSetSelection(int N, bool select) { wxCHECK_RET( N >= 0 && N < m_noItems, wxT("invalid index in wxListBox::SetSelection") ); @@ -909,7 +909,7 @@ void wxListBox::MacDoClick() n = -1; } - event.m_commandInt = n; + event.SetInt(n); GetEventHandler()->ProcessEvent(event); } @@ -990,7 +990,7 @@ void wxListBox::OnChar(wxKeyEvent& event) n = -1; } - event.m_commandInt = n; + event.SetInt(n); GetEventHandler()->ProcessEvent(event); } @@ -1017,7 +1017,7 @@ void wxListBox::OnChar(wxKeyEvent& event) event.SetClientData( GetClientData(line) ); event.SetString( GetString(line) ); - event.m_commandInt = line ; + event.SetInt(line); GetEventHandler()->ProcessEvent(event); }