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?
 
Top