How to listen to mouse clicks anywhere in the Visual Studio IDE and get information about the component that was clicked?
I’m trying to create an extension that listens to mouse clicks anywhere in the Visual Studio IDE window and get information about what was clicked. So far, I’ve only managed to do that for the text editor panel with IMouseProcessor, but I can’t figure out how to do that for other components. For example, I’d like to be able to listen to clicks in the Solution Explorer and know the click happened over the Solution Explorer, or that a tool bar button was clicked and get the name or some sort of ID for the button.
I’m aware of the win32 hooks but those don’t provide information on what was clicked.
Read more here: Source link
