Home > Software engineering > CListCtrl insert images show the order do not agree with the actual order
CListCtrl insert images show the order do not agree with the actual order
Time:10-11
As title, CListCtrl with CImageList binding, CListCtrl model as an icon, call insertItem () function inserts line to display images and text,
When inserting display images in the same function, insert the pictures can be displayed in accordance with the order of the insert, But between different function to insert the image, insert images can only be at the end of the list, according to and the order of words and images in the list is correct, Is the window shows the image list do not match the order list with the actual order, Pray god to give directions how to let the window display image sequence consistent with the order of list actual ~
CodePudding user response:
CListCtrl you see if the control of the Sort attribute checked