Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Specify the default drop action during drag-drop

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensionsMFC
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Fri Dec 19, 2008 9:49 am    Post subject: HOWTO: Specify the default drop action during drag-drop

When an item in your namespace extension is dragged over another location, the default (when Ctrl or Shift keys are not pressed) drop action (Move,Copy or Link) depends on the attributes that the dragged items have. However, you can specify the default drop actions using the SetPreferredDropEffect method in the InitDataObject method as follows:

Code:

void CFolderItem::InitDataObject(CInitDataObjectEventArgs& e)
{
...
...
// Set default drop action to 'Copy'
e.dataObject->SetPreferredDropEffect(DROPEFFECT_COPY);
...
...
}
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensionsMFC All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group