Print Page | Close Window

Dragging from TaskPanel into Calendar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15834
Printed Date: 01 July 2024 at 7:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dragging from TaskPanel into Calendar
Posted By: EricFowler
Subject: Dragging from TaskPanel into Calendar
Date Posted: 13 December 2009 at 12:02am
So I want to be able to drag a task panel item into the calendar and drop it, thereby adding an event to the calendar.
 
I will naturally want the calendar to interrogate whatever is dropped to get data from it, etc.
 
I am already able to trap COleDropTarget::OnDrop() calls in the calendar and sort out the CLIPFORMAT.

What I need to know is:
How do I pass a pointer of data from the task panel (that is, one item) to the OnDrop() handler?
 
When I get a STGMEDIUM struct populated with an HGLOBAL, what does the HGLOBAL point to, if my drag started in a task panel? 
Thanks
 
Eric



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