mfc >> Drag and drop a block of text

by WRH » Tue, 25 Nov 2003 08:20:46 GMT

Hello
I have a program that displays several CRichEditCtrl windows. I need to
intercept
drag and drop operations between them in order to manage fonts. I have no
problem
with file drag and drop or text cut and paste. If the user selects and drags
a block
of text however how do I manage it? (For that matter, how do I know about
it?)




mfc >> Drag and drop a block of text

by xmontyx » Wed, 26 Nov 2003 18:00:39 GMT


VC Provides functions such as onDrop
try to handle them





mfc >> Drag and drop a block of text

by WRH » Fri, 28 Nov 2003 21:31:51 GMT

Thanks for the info :)






no
drags
about




Similar Threads

1. drag-drop text, get source of text - CSharp/C#

2. I want to Drag From TreeView Node and Drop to A Rich Text BOX

plz help me out .
I want to Drag From TreeView Node and Drop to A Rich Text BOX in C#.Net and VS2005

3. select text, then drag and drop - CSharp/C#

4. Drag text from windows and drop it in a windows forms Application

Hi there!
I've searched quite a bit for a peice of code to suite some basic
interface need: Drag And Drop. So what I need is to copy text from,
for example Internet Explorer, to form (to a text box or whatever).
The bahavior that I whant to implement is almost like the copy paste,
but from outside the app.

Can someone please me a hint in how to do this?

Thank you, in advance!

Best regards,
JCarias

5. Rich Text Box - Problem in File Drag Drop - CSharp/C#

6. Dragging (and dropping) text inside a RTF control

Hi,
I try to implement dragging (and dropping) of text inside a rtf control
(similar as word i guess)
I have set AllowdDrop = true and setup the handlers for DragDrop, DragOver,
DragEnter.

is there anything else i need to do ?

becuase if i now select some text in the control and start dragging this,
the very first time i see the 'no entry' sign (none of my handlers getting
called), if i now repeat the operation, i
see the 'copy' sign (because the DragOver, DragEnter set the effect to
this), but it also executes the DragDrop, (from the previous attempt) even
if i stil have my mousebutton is still drown..

Regards,

Fred


7. Drag & Drop text - CSharp/C#

8. CTreeCtrl Drag&Drop Text problem.

When I do drap&drop tree item in a CTreeView derived window,
the text does not show, only has the image icon. When I put a CTreeCtrl
in a CFormView,  the drag and drop has icon+ text(label). The codes
for BeginDrag and moving are all most the same.

I wonder what is wrong in CreateDragImage(). It assumes that this will 
create a bitmap
with Icon and Text by call:

 HIMAGELIST hImageList = (HIMAGELIST)::SendMessage(m_hWnd,
  TVM_CREATEDRAGIMAGE, 0, (LPARAM)hItem);

Are there any differences in Drag& drop between CTreeView's CTreeCtrl
and CTreeCtrl localted on CFormView ?


Thanks for any comments.


Mike J


My OS is XP sp2. VC++ 6.0