I want to drag an item from a treeview to a canvas

BlitzMax Forums/BlitzMax Programming/I want to drag an item from a treeview to a canvas

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well I can detect tree view drag events:
case TVN_BEGINDRAG:
MessageBox(0,"Tree View Drag Event","Tree View Drag Event",MB_OK);

Only problem so far is when I drag a treeview item, BlitzMax automatically selects the last selected node, not the one I am dragging. How can I change this?

Right now I am trying to make Windows select the treeviewnode when a drag operation starts:

From win32treeview.cpp:
	case TVN_BEGINDRAG:
		//MessageBox(0,"Tree View Drag Event","Tree View Drag Event",MB_OK);
		_selected=(Win32TreeViewNode*)nm->itemNew.lParam;		
		SendMessage(_gadget.hwnd(),TVM_SELECTITEM,TVGN_CARET,(int)_selected);
		emit( 690,(int)_selected );
		break;


Judging from the results of the other tree events, it doesn't look like treeview events in maxgui actually return the treeview node gadget they should.