more 64 bit correctness fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-09-29 09:25:47 +00:00
parent 7714864e2f
commit 81ce36aa59
4 changed files with 14 additions and 14 deletions

View File

@@ -164,7 +164,7 @@ public:
void SetItem( const wxListItem &info );
void SetImage( int image ) { m_image = image; }
void SetData( long data ) { m_data = data; }
void SetData( wxUIntPtr data ) { m_data = data; }
void SetPosition( int x, int y );
void SetSize( int width, int height );
@@ -203,7 +203,7 @@ public:
int m_image;
// user data associated with the item
long m_data;
wxUIntPtr m_data;
// the item coordinates are not used in report mode, instead this pointer
// is NULL and the owner window is used to retrieve the item position and
@@ -679,7 +679,7 @@ public:
void DeleteEverything();
void EnsureVisible( long index );
long FindItem( long start, const wxString& str, bool partial = false );
long FindItem( long start, long data);
long FindItem( long start, wxUIntPtr data);
long FindItem( const wxPoint& pt );
long HitTest( int x, int y, int &flags );
void InsertItem( wxListItem &item );
@@ -4271,7 +4271,7 @@ long wxListMainWindow::FindItem(long start, const wxString& str, bool WXUNUSED(p
return wxNOT_FOUND;
}
long wxListMainWindow::FindItem(long start, long data)
long wxListMainWindow::FindItem(long start, wxUIntPtr data)
{
long pos = start;
if (pos < 0)
@@ -4466,9 +4466,9 @@ int LINKAGEMODE list_ctrl_compare_func_1( wxListLineData **arg1, wxListLineData
wxListLineData *line2 = *arg2;
wxListItem item;
line1->GetItem( 0, item );
long data1 = item.m_data;
wxUIntPtr data1 = item.m_data;
line2->GetItem( 0, item );
long data2 = item.m_data;
wxUIntPtr data2 = item.m_data;
return list_ctrl_compare_func_2( data1, data2, list_ctrl_compare_data );
}
@@ -4840,7 +4840,7 @@ void wxGenericListCtrl::SetItemText( long item, const wxString& str )
m_mainWin->SetItemText(item, str);
}
long wxGenericListCtrl::GetItemData( long item ) const
wxUIntPtr wxGenericListCtrl::GetItemData( long item ) const
{
wxListItem info;
info.m_itemId = item;
@@ -5080,7 +5080,7 @@ long wxGenericListCtrl::FindItem( long start, const wxString& str, bool partial
return m_mainWin->FindItem( start, str, partial );
}
long wxGenericListCtrl::FindItem( long start, long data )
long wxGenericListCtrl::FindItem( long start, wxUIntPtr data )
{
return m_mainWin->FindItem( start, data );
}