|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Lars Mohr
|
May 4, 2009 - 7:02 AM
|
Hello Support-Team! Has the CExtTreeCtrl any special function for drag and drop items functionallity?. Or do I have to write from scratch like it is written down in the MSDN? But then I think I get some problems with the CreateDragImage, because I use only icons (TreeIconAdd). Do you have any example for that? Regards
|
|
Lars Mohr
|
May 5, 2009 - 9:15 AM
|
Funny, but I receive the TVN_BEGINDRAG notification message! You are right, it is easier with OLE. I will try it. Thanks
|
|
Technical Support
|
May 5, 2009 - 12:38 PM
|
The CExtTreeCtrl class uses the tree common control simply as a storage for tree items and implements the tree control’s behavior from scratch by handling keyboard and mouse events. You should not receive a TVN_BEGINDRAG message from the CExtTreeCtrl control in Prof-UIS 2.84 because we simply forgot to implement it. This is checked on different Windows versions and reported by customers. The TVN_BEGINDRAG message is sent by the improved version of the CExtTreeCtrl class in Prof-UIS 2.85 only. Did you download 2.85?
|
|
Lars Mohr
|
May 5, 2009 - 2:44 PM
|
Sorry but I receive the message: ON_NOTIFY(TVN_BEGINDRAG, IDC_TREE_PROJECT_EXPLORER, &CProjectExplorer::OnTvnBegindragTreeProjectExplorer)
And I use Prof-UIS 2.84 / XP / VS2005. But I don’t receive other notify messages like TVN_BEGINLABLEEDIT . But I have solved this by overwrite the OnTimer function. if( nIDEvent == m_nDelayedEditingTimerID )
|
|
Technical Support
|
May 4, 2009 - 11:33 AM
|
The CExtTreeCtrl class in Prof-UIS 2.84 does not send the TVN_BEGINDRAG notification. This issue is fixed in Prof-UIS 2.85. So, first thing you need is to update the source code of the CExtTreeCtrl class or switch to Prof-UIS 2.85. You can drop us an e-mail to the support mail box and we will provide you with the FTP download.
Next thing is drag-n-drop implementation. We prefer to use OLE drag-n-drop everywhere. It’s convenient and simple. The FormEditor sample application allows to drag-n-drop controls from toolbox into opened forms. The MDI tabs, tabs inside tabbed groups of resizable control bars and auto hide tabs support drag-n-drop and do selection changing when you dragging something over their tab items.
|
|