22 Oct
Posted by support as Win32/MFC 1,987 views, 0 Comments
Read this article: How to use an derived CListCtrl in CListView
22 Oct
Posted by support as Win32/MFC 5,148 views, 0 Comments
How to sort the items of a CListCtrl or CListView(CReportView)? First, when you add items, you need to call SetItemData to attach an data structure(an integer or a pointer) to the item. Then, define a callback sort function. int CALLBACK SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort); And here, the prarameters lParam1 and lParam2 are the [...]
22 Oct
Posted by support as General 3,599 views, 2 Comments
Sometime you use CListView and need to extend the functionality of the CListCtrl of the view. For example, you want to overwrite the handler function of the NM_CUSTOMDRAW or WM_SIZE message. So the problem is: How to tell CListView to use your own CListCtrl? OK, you are on the wrong way now. The CListView does [...]