Print Page | Close Window

Ole drag/drop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7590
Printed Date: 20 June 2025 at 11:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ole drag/drop
Posted By: Mike17
Subject: Ole drag/drop
Date 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 :)



Replies:
Posted By: yossi
Date 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


Posted By: yossi
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net