pass wxIntPtr, not wxUIntPtr, to wxListCtrl::SortItems() callback as it's more compatible with the existing code assuming that this parameter is signed (as our own wxFileCtrl did)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -138,7 +138,7 @@ public:
|
||||
long InsertColumn( long col, const wxString& heading,
|
||||
int format = wxLIST_FORMAT_LEFT, int width = -1 );
|
||||
bool ScrollList( int dx, int dy );
|
||||
bool SortItems( wxListCtrlCompare fn, wxUIntPtr data );
|
||||
bool SortItems( wxListCtrlCompare fn, wxIntPtr data );
|
||||
bool Update( long item );
|
||||
// Must provide overload to avoid hiding it (and warnings about it)
|
||||
virtual void Update() { wxControl::Update(); }
|
||||
|
@@ -610,7 +610,7 @@ public:
|
||||
void InsertItem( wxListItem &item );
|
||||
void InsertColumn( long col, wxListItem &item );
|
||||
int GetItemWidthWithImage(wxListItem * item);
|
||||
void SortItems( wxListCtrlCompare fn, wxUIntPtr data );
|
||||
void SortItems( wxListCtrlCompare fn, wxIntPtr data );
|
||||
|
||||
size_t GetItemCount() const;
|
||||
bool IsEmpty() const { return GetItemCount() == 0; }
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
// type of compare function for wxListCtrl sort operation
|
||||
typedef
|
||||
int (wxCALLBACK *wxListCtrlCompare)(long item1, long item2, wxUIntPtr sortData);
|
||||
int (wxCALLBACK *wxListCtrlCompare)(long item1, long item2, wxIntPtr sortData);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxListCtrl constants
|
||||
|
@@ -353,7 +353,7 @@ public:
|
||||
// or zero if the two items are equivalent.
|
||||
|
||||
// data is arbitrary data to be passed to the sort function.
|
||||
bool SortItems(wxListCtrlCompare fn, wxUIntPtr data);
|
||||
bool SortItems(wxListCtrlCompare fn, wxIntPtr data);
|
||||
|
||||
// IMPLEMENTATION
|
||||
virtual bool MSWCommand(WXUINT param, WXWORD id);
|
||||
|
@@ -281,7 +281,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
|
||||
// or zero if the two items are equivalent.
|
||||
|
||||
// data is arbitrary data to be passed to the sort function.
|
||||
bool SortItems(wxListCtrlCompare fn, wxUIntPtr data);
|
||||
bool SortItems(wxListCtrlCompare fn, wxIntPtr data);
|
||||
|
||||
wxMacDataBrowserListCtrlControl* GetListPeer() const;
|
||||
|
||||
@@ -317,7 +317,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
|
||||
void Command(wxCommandEvent& event) { ProcessCommand(event); };
|
||||
|
||||
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
|
||||
wxUIntPtr GetCompareFuncData() { return m_compareFuncData; };
|
||||
wxIntPtr GetCompareFuncData() { return m_compareFuncData; };
|
||||
|
||||
|
||||
// public overrides needed for pimpl approach
|
||||
@@ -391,7 +391,7 @@ protected:
|
||||
void* m_macListCtrlEventHandler;
|
||||
void* m_cgContext;
|
||||
wxListCtrlCompare m_compareFunc;
|
||||
wxUIntPtr m_compareFuncData;
|
||||
wxIntPtr m_compareFuncData;
|
||||
|
||||
wxTextCtrl* m_textCtrl; // The control used for editing a label
|
||||
wxImageList * m_imageListNormal; // The image list for normal icons
|
||||
|
Reference in New Issue
Block a user