ActiveX hosting, events from contained components are fired through to your program using the exact same model used in VB6 for components added at run time, data bounding, multiple columns, and more
I have use this control in mdi app! the chindframe of My app is splittered - by LeftView(CTreeView) rightView (this control).
when the event-- CTreeView::OnSelchanged happened, i reset
all content of the CNewTreeListCtrl(in the right pane)!
so i invoke CNewTreeListCtrl::DeleteAllItems(). But the App
So i Find the error and fix the Memory leak in CNewTreeListCtrl::DeleteAllItems():
I just located the source of some very strange behavior. It seems that if you comment out the lines in CTreeListView::OnInitialUpdate that make the image list then there are some weird drawing issues.
If I move the horizontal scrollbar to the right and click on different items then the dark blue background of each selected is not completely cleared. In fact the only part of the scrollbar that is cleared seems to correspond to the section of the control that is shown when the horizontal scrollbar is completely to the left.
I'm facing a strange problem with drag&drop management. The message TVN_BEGINDRAG is fired only if the mouse cursor is over the icon on the left of an element. If the mouse is either on the text caret or on the left of the icon it is not fired.
I managed to find out that the text caret used to fire the TVN_BEGINDRAG notification was the one of the displayed text. As this text is always set to "" in the control there is no bounding caret to fire the event. What I did was to set the text of each item with the one of the left column.
I didn't find how to tell the control to use all the bounding rectangle to fire the notification.