Catch mouse events in PowerPoint designer through VSTO

前端 未结 2 945
孤独总比滥情好
孤独总比滥情好 2021-02-10 18:11

I am developing an add-in for PowerPoint (2013) with C# / VSTO. The add-in will work when the user is in design mode, not presentation mode.

How can I c

2条回答
  •  清酒与你
    2021-02-10 18:38

    I encountered the same problem a few weeks back. But instead of going deep into the Windows API programming for listening the mouse events, I used Excel.Chart. Unlike PowerPoint.Chart it gives a hell lot of mouse events to work with like

    Chart.MouseUp, Chart.MouseOver, Chart.WindowBeforeDoubleClick, Chart.WindowBeforeRightClick, Chart.DragOver etc.

    Most probably by now you have gone deep into the Windows API programming. Were you successful in listening to the mouse event? If yes, then how you did it?

    Thanks :)

提交回复
热议问题