CListCtrl allways show only the first items???
-
Hello, i use CListCtrl with virtual list, and i have a problem when i try to scroll down to see other items, CListCtrl jumps to first, allways if i call .SetItemCount() to actualize list content!!! Is there any way to solve this, that i can scroll down in CListCtrl? :confused: Thank you for help! termal
-
Hello, i use CListCtrl with virtual list, and i have a problem when i try to scroll down to see other items, CListCtrl jumps to first, allways if i call .SetItemCount() to actualize list content!!! Is there any way to solve this, that i can scroll down in CListCtrl? :confused: Thank you for help! termal
-
Hello, ähm, there is no large code, here a sample:
// pointer to my list control
pList->SetItemCount(hashmap.size()); // i store all data in a hash map! ---> stdex::hash_mapthat ist all!:confused: Now if i want to scroll down to other items the focus jump allways to top of the list, or any other previous selected item, that means if i select item no. 15 and i croll down to item no. 2500, by SetItemCount list jumps again back to previous selected item no.15, if no selection jumps to top! Now i try to catch a OnLvnBeginScrollListAll(NMHDR *pNMHDR, LRESULT *pResult) but i get a error: "error C2065: 'LVN_BEGINSCROLL' : undeclared identifier" The msdn say's that i need to include commctrl.h, i have that and the error is again there! I use VS2005! So that is my problem now, maybe you can help me here? regards termal
modified on Monday, December 17, 2007 9:38:26 AM
-
Hello, ähm, there is no large code, here a sample:
// pointer to my list control
pList->SetItemCount(hashmap.size()); // i store all data in a hash map! ---> stdex::hash_mapthat ist all!:confused: Now if i want to scroll down to other items the focus jump allways to top of the list, or any other previous selected item, that means if i select item no. 15 and i croll down to item no. 2500, by SetItemCount list jumps again back to previous selected item no.15, if no selection jumps to top! Now i try to catch a OnLvnBeginScrollListAll(NMHDR *pNMHDR, LRESULT *pResult) but i get a error: "error C2065: 'LVN_BEGINSCROLL' : undeclared identifier" The msdn say's that i need to include commctrl.h, i have that and the error is again there! I use VS2005! So that is my problem now, maybe you can help me here? regards termal
modified on Monday, December 17, 2007 9:38:26 AM