Click to See Complete Forum and Search --> : Help fix my broken TreeCtrl


Jaime W
April 5th, 1999, 11:28 AM
I have a tree control that displays info in the following format:
Employee
|
|--Project (Folder)
| |-- Some Project Name
|--SubProjects (Folder)
| |-- Some Subproject
-----

Well, I allow the user to drag & drop projects/subprojects between users. I do not allow the user to drop a project back onto himself. This is where things get screwed up.

If a user, does try to drop things on himself, I ignore it and select the user who was the target of the drop operation. This is fine, but if I try to select anyone else in the control afterwards, it will highlight the new selection (as long as i hold down the mouse button), then it "reselects" the original guy. No matter who I pick, my selection always reverts to the employee who had his Project/Subproject dropped on himself...

Any ideas of what happened, without me having to post some code?

Thanks,
Jaime