Re: Drag and Drop Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



The reason I hadn't tried that was because the doc said that EN_DROPFILES
gets called after the user releases the mouse button. I want to bring the
view to the foreground when the mouse is dragged over the rich edit control
(for example where OnDragEnter or OnDragOver would get called.)

Anyway I tired to catch the message in my CRichEditCtrl derived class using
message reflection but it never got called. I am setting the ENM_DROPFILES
event flag. But it never gets called.

Either way unless the sdk docs are incorrect EN_DROPFILES isn't really going
to help me.

AliR.

""Gary Chang[MSFT]"" <v-garych@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:f217$JM9FHA.1236@xxxxxxxxxxxxxxxxxxxxxxxx
> Hi Ali,
>
> >So the user will have to drag the mouse to another part
> >of the view where there is no CRichEditCtrl in order to
> >bring up the view.
>
> Do you mean the view will not be brought to the foreground when you drag
> and drop the file to it?
>
> If so, I think you may try to handle the EN_DROPFILES message of the
target
> RichEdit control, put your BringWindowToTop call in its handler function
> and then call the base class routine in it...
>
>
> Thanks!
>
> Best regards,
>
> Gary Chang
> Microsoft Community Support
> --------------------
> Get Secure! ¡§C www.microsoft.com/security
> Register to Access MSDN Managed Newsgroups!
>
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>


.


Quantcast