|
-
August 1st, 2002, 03:50 AM
#1
InsertMark for TreeView?
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
-
August 1st, 2002, 10:57 AM
#2
Re: InsertMark for TreeView?
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
Jared
-
August 2nd, 2002, 03:20 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|