CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    10

    Question 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

  2. #2
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    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

  3. #3
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    10
    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
  •  





Click Here to Expand Forum to Full Width

Featured