Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / sorting wxListCtrl by columns

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. sorting wxListCtrl by columns
#4854
Posted by: nicksteck 2004-07-20 00:53:53
Hello,

I am trying to figure out how to allow sorting of a wxListCtrl by column.

I am able to call the wxListCtrlCompare function whenever a column heading is selected, but the data that is passed is always the same, no matter what column is selected.

I am setting the data for each list item with SetItemData function call. But, this seems to set the item data for the entire row. When I try to set the item data for each field (using the wxListItem object and m_data field and giving the appropriate row/col value) those values are not passed to my compare function.

Any help would be greatly appreciated.


Thanks,
-Nick
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥477.00 ·
 
 
¥918.00 ·
 
 
¥370.00 ·
 
 
¥271.00 ·
 
 
¥995.00 ·
 
 
¥1,580.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0