CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: DnD in ListCtrl

Hybrid View

  1. #1
    Join Date
    Aug 2002
    Posts
    756

    DnD in ListCtrl

    Hi, ALL,
    There is no built-in support for DnD in ListCtrl.
    There is a BEGINDRAG message but no ENDDRAG.

    So I made it b handling BEGNDRAG and "mouse up" messages.

    The problem is I don't see a visual cue where the item will be dropped.

    I presume I should handle "mouse move' message, but them what? What do I put there?

    Thank you,

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,402

    Re: DnD in ListCtrl

    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2002
    Posts
    756

    DnD in the ListCtrl

    Hi, ALL,
    The native ListCtrl on Windows/Win32 do not support DnD.

    So I implemented it with catching begindrag event, capturing mouse and mouse up event.

    However, there is no visual cue about dropping the item in the list control.

    My scenario is DnD from one list control to another list control.

    I understand that I should catch mouse move event, but what do I put there? Ideally the result should reflect how DnD works in the tree control, but any potential visual cue would be fine on the drop.

    Thank you.

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