Google Answers Logo
View Question
 
Q: OnDragEnter and OnDragOver Events ( No Answer,   0 Comments )
Question  
Subject: OnDragEnter and OnDragOver Events
Category: Computers > Software
Asked by: sumithra-ga
List Price: $20.00
Posted: 08 Jan 2003 09:35 PST
Expires: 12 Jan 2003 16:20 PST
Question ID: 139296
How to make my Active X control in mfc respond to the events dragenter
and dragover events. I cannot find the dragenter and dragover
functions in the class wizard. i tried to add them manually but
nothing happens. COleDropTarget had the onDragEnter and onDragOver
methods. i have an object of COleDropTarget and my main window is
registered with it as a droptarget. how do i proceed from here?.

Request for Question Clarification by blader-ga on 08 Jan 2003 13:30 PST
I believe ActiveX controls respond to OLEDragEnter and OLEDragover
events. You might have to rewrite your drag and drop functions to OLE
Drag/Drop. I wish I could be of further help, but it's difficult to
debug a program without access to the source code. If you can give
further details on your problem and what you have tried, that would
help a lot. Let me know if you have more questions.

Clarification of Question by sumithra-ga on 08 Jan 2003 16:36 PST
Hi, my guess is i need to ovverride the onDragEnter and onDragOver
functions of COleDropTarget class.  the base class of my active x
control is COleControl. Now how will i create a class with the base
class COleDropTarget and override the two mathods. then i create an
object of the type of the new class.

thanks
sumi

Request for Question Clarification by studboy-ga on 10 Jan 2003 15:12 PST
Hi sumi

class COleDropTargetOverrided  :  public COleDropTarget 
{
...

then 

COleDropTargetOverrided::onDragEnter 
{
 // your override here

and

COleDropTargetOverrided::onDragOver
{
 // your override here


Is this what you want?

Clarification of Question by sumithra-ga on 12 Jan 2003 15:12 PST
Hi Have derived a class from COleDropTarget.
I need to override the OnDrawEnter and OnDrawOver so that when files
are dragged into my mfc active x control the back ground picture has
to change.
How do i achive this?. 

In my main control class onDraw method i am doing the drawing of
picture. how would i call this ondraw method from my the obDrawEnter
method?. or is ther anyother way to draw a picture on my active x
control when files are dragged onto the control.

also, i am not sure if the onDrawEnter method is called at all. when i
place break point in the onDrawEnter method the container says it is
an invalid place for the break point.
Thanks
sumi
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy