Originally posted by: Lakhwinder Pal
I am using yr code to create a multi column tree ctrl in CView. I need to show a context menu on rt click within the tree ctrl.
1. The menu pops up but another system menu(alt+space)also pops up when I select an item within my menu.
2. It only pops up when the window is maximised.
Any help in this will be highly apprteciated.
Thanking u in anticipation
Lakhwinder
ReplyOriginally posted by: Mike Philis
Check this out: http://www.exontrol.com/sg.jsp?content=products/extree
Features include:
Mike
Are you looking for a cool tree control?
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
www.exontrol.com
Originally posted by: Emil
anyone wanna tell me
ReplyOriginally posted by: ran
I try to use the TreeList in dialog control
But the TreeList fills the entire dialog window Rect
is it a bug
Originally posted by: Sun Liang From China
So i Find the error and fix the Memory leak in CNewTreeListCtrl::DeleteAllItems():
EndWaitCursor();
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
crashed!
BOOL CNewTreeListCtrl::DeleteAllItems()
{
BeginWaitCursor();
LockWindowUpdate();
//daniel 先调用系统CTreeCtrl::DeleteAllItems();
//再CNewTreeListCtrl 的MemDeleteAllItems()保证无系统的pItem内存漏洞
BOOL m_bReturn = CTreeCtrl::DeleteAllItems();
MemDeleteAllItems(GetRootItem());
UnlockWindowUpdate();
return m_bReturn;
}
I wish it would works well! :-)
Daniel sun from the city of Hangzhou, China!
Originally posted by: zhy
It's great! but could you tell me how to add grid lines?
ReplyOriginally posted by: Kevin
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.
Reply
Originally posted by: genie
I tried using NewTreeListView in a splitter - the control did not resize properly, it remained the same size used for
creating it (default). Any suggestions?
Originally posted by: Olivier
Hi,
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.
Does anyone knows how to do this ?
Reply
Originally posted by: Tapan Das
if (m_pImageList &&
I downloaded your code on TreeList. Next I had implemented in a dialogbox as a user defined control. But it is throwing exception at the DrawItem lines.
m_mapImageIndex.Lookup( lpDrawItemStruct->itemID, imageIndex ) )
{
if( imageIndex != -1 )
{
if(uFormat & DT_RIGHT)
// draw to the left of the label
m_pImageList->Draw(&dc, imageIndex,
CPoint( rcLabel.left + offset,offset/3 ),
ILD_TRANSPARENT );
else
// draw to the right
m_pImageList->Draw(&dc, imageIndex,
CPoint( rcLabel.right - dc.GetTextExtent(_T(buf), 1 ).cx*2,offset/3 ),
ILD_TRANSPARENT );
// Now adjust the label rectangle
IMAGEINFO imageinfo;
if( m_pImageList->GetImageInfo( imageIndex, &imageinfo ) )
{
rcLabel.left += offset/2 +
imageinfo.rcImage.right - imageinfo.rcImage.left;
}
}
}
So what can be the problem? Can u reply me please ASAP.