Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Drag and Drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag and Drop

 Post Reply Post Reply
Author
Message
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Topic: Drag and Drop
    Posted: 09 May 2005 at 7:56am

I am migrating to docking panes from Codejock and my view is a CTreeView. This view is attached to the pane. Now earlier when my Treeview was a view of my childwindow, the drag and drop support was there and now after attaching the treeview to my pane, the drag and drop functionality is not working. Ia ma not getting OnDragEnter or OnDragOver messages. Why is so?

Need assistance urgently. Thanks

Regards
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2005 at 11:05am

I don't know how it worked before, but commonly to enable it you must

1. add COleDropTarget m_oleDropTarget; member for CYourView

2. call m_oleDropTarget.Register(this); in

int CYourView::OnCreate(LPCREATESTRUCT lpCreateStruct)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2005 at 2:01am

Thanks a lot.

The code for COleDropTarget was commented.
Sorry for the trouble.

Regards
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.055 seconds.