Discussion:
How to stop drag n drop on my view?
(too old to reply)
Davinder
2006-09-05 11:38:07 UTC
Permalink
Hi All
I have developed a very simple MFC based SDI application.
I have derived my view from CHtmlView class as i wanted to load an html page
as soon as the app is executed.

Everything is working fine except one problem.

When ever i drag some file .htm/.bmp/.doc and drop it on the view of my
application, the particular file is opened in my view.

I want to stop this functionality.

How can i do this.

Please suggest

Regards
Davinder.
k***@gmail.com
2006-09-12 16:35:19 UTC
Permalink
Hi,

Use SetRegisterAsDropTarget(FALSE);

/Kiran
Post by Davinder
Hi All
I have developed a very simple MFC based SDI application.
I have derived my view from CHtmlView class as i wanted to load an html page
as soon as the app is executed.
Everything is working fine except one problem.
When ever i drag some file .htm/.bmp/.doc and drop it on the view of my
application, the particular file is opened in my view.
I want to stop this functionality.
How can i do this.
Please suggest
Regards
Davinder.
Continue reading on narkive:
Loading...