CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2001
    Location
    Singapore
    Posts
    200

    Problems with CTreeCtrl

    I have created a CTreeCtrl. By using specifying the style TVS_DISABLEDRAGDROP for the CTreeCtrl, I have managed to disable the drag and drop operation of the CTreeCtrl.

    However the problem is that even though the user is unable to click and drag an item when he left clicked on the item, he is still able to right click on an item (of the CTreeCtrl) and drag the item to another location.

    Is there any way to totally disable the drag and drop function of the CTreeCtrl??

  2. #2
    i think testing of this flag into TVN_BEGINRDRAG is enought
    t!

  3. #3
    Join Date
    Jan 2001
    Location
    Singapore
    Posts
    200
    Originally posted by real name
    i think testing of this flag into TVN_BEGINRDRAG is enought
    t!

    What do you mean?? Which flag to test?

  4. #4
    TVS_DISABLEDRAGDROP
    t!

  5. #5
    Join Date
    Jan 2001
    Location
    Singapore
    Posts
    200
    Originally posted by real name
    TVS_DISABLEDRAGDROP
    t!
    OK i got it....A million thanks

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