CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    Posts
    1

    Question How to select text in mouse click event?

    Hi,

    How do I select a part of text in by click and dragging in the textbox in VC++? Which event do I need to choose? Please help on this.

    Thanks

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: How to select text in mouse click event?

    There is no support in MFC for drag and drop. But there are a couple of COM interfaces for that, IDropTarget, IDropSource, and IDataObject. Maybe this article can help you: http://msdn.microsoft.com/en-us/magazine/cc163915.aspx.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

Tags for this Thread

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