Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Ole drag/drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ole drag/drop

 Post Reply Post Reply
Author
Message
Mike17 View Drop Down
Newbie
Newbie


Joined: 13 July 2007
Location: Australia
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mike17 Quote  Post ReplyReply Direct Link To This Post Topic: Ole drag/drop
    Posted: 13 July 2007 at 12:50am
Hi Guys,

I have an application where I want to drag scheduled appointments between the calendar and a standard MFC CListCtrl. I have dragging onto the calendar working quite well, but I cannot find an example that shows dragging an existing item off the calendar to another ctrl/window. Is there a way to do this?

Also as an extension to this, I cannot even find out how to enable dragging from the calendar onto it's connected date-picker control. Is this just not implemented or do I have an old build?

I am currently using v11.3.

Thanks in advance for your help :)
Back to Top
yossi View Drop Down
Newbie
Newbie


Joined: 15 January 2008
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote yossi Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2008 at 7:24pm

Yeah, I got similar issues.

- Is it possible to make the Calendar Control/View an OLE drop target, and override/implement custom handling that will allow for creating event(s) on drop?
 
Thanks
Back to Top
yossi View Drop Down
Newbie
Newbie


Joined: 15 January 2008
Location: United States
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote yossi Quote  Post ReplyReply Direct Link To This Post Posted: 30 January 2008 at 4:37am

Hi,

I found it was as easy as adding COleDropTarget member data to

CXTPCalendarControlView derived class, and register the class in a function like OnCreate; for example:

m_oleDropTarget.Register( this );

Then override the "big four" of the COleDropTarget.
 
Thanks
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.172 seconds.