Detecting Mouse Click or Mouse Hover on a Shape in Excel

T

tsract

I wrote a COM Addin for Microsoft Excel, and would like to be able to detect
when a user clicks on a Shape Object.

The SelectionChange event of the application, Workbook, and Worksheet
objects do not detect when the shape has been selected. They only detect
cell selections it appears.

I tried using the IAccessible interface along with a hook to get the object
under the Mouse pointer (AccessibleObjectFromPoint), but it only returns the
"Client".

Any thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top