Willy
Willy

Reputation: 10638

VSTO Outlook: Detect left mouse up in active window

I would like to know how can i detect left mouse up in the active window.

I googled but i was not able to find anything.

I don't see any mechanism to subscribe to that event in the active window.

Maybe using Windows API functions but how?

Upvotes: 0

Views: 42

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

There is no trivial way for getting the job done in Outlook. The only possible way is to use Windows API functions like SetWindowsHookEx which installs an application-defined hook procedure into a hook chain. You would install a hook procedure to monitor the system for certain types of events. For example, you may find the MouseProc callback function helpful.

Upvotes: 1

Related Questions