Click to See Complete Forum and Search --> : InsertMark for TreeView?
thugohet
August 1st, 2002, 03:50 AM
Hello!
In the good old MFC-days I have used the method CTreeCtrl::SetInsertMark to show an insertion mark in tree views, which was quite usefull for drag&drop operations.
Does this function exist in .net? I found nothing similar to the MFC method in System.Windows.Forms.TreeView. Does someone have a hint for me?
Best regards,
Thomas Hetzer
jparsons
August 1st, 2002, 10:57 AM
Originally posted by thugohet
Hello!
In the good old MFC-days I have used the method CTreeCtrl::SetInsertMark to show an insertion mark in tree views, which was quite usefull for drag&drop operations.
Does this function exist in .net? I found nothing similar to the MFC method in System.Windows.Forms.TreeView. Does someone have a hint for me?
What exactly does the SetInsertMark function do?
Best regards,
Thomas Hetzer
thugohet
August 2nd, 2002, 03:20 AM
Hello!
What exactly does the SetInsertMark function do?
It places an insertion mark before or after a specified item in a tree control (message TVM_SETINSERTMARK is send to the tree control). The insertion mark is a horizontal line with small triangles at each end of the line.
This method is particularly usefull for drag&drop operations to show the user, where exactly the item will be dropped.
BTW: The color of the insertion mark can be set in MFC applications by calling CTreeCtrl::SetInsertMarkColor().
Best regards,
Thomas Hetzer
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.