User can drag an object from my namespace and drop it in either left or right pane. I just want to know whether the drop occured in left pane or in right pane. Thanx
User can drag an object from my namespace and drop it in either left or right pane. I just want to know whether the drop occured in left pane or in right pane. Thanx
Use GetClassName on the control handle and see if it's WC_TREEVIEW or WC_LISTVIEW. -- -GJC [MS Windows SDK MVP] -Software Consultant (Embedded systems and Real Time Controls) XXXX@XXXXX.COM -Abolish public schools
Um that assumes that the views will always be a treeview and a listview - that is not guaranteed to be true in the future. Pravin, why do you need to change your behavior if the item is dropped in a different place? That's highly unusual. (And what if the user drops onto the desktop or into a Word document? That's neigther left nor right.)
That's good to know. -- -GJC [MS Windows SDK MVP] -Software Consultant (Embedded systems and Real Time Controls) XXXX@XXXXX.COM -Abolish public schools
Users browsing this forum: No registered users and 52 guest