James Cadd
James Cadd

Reputation: 12216

WPF - Send mouse wheel messages to a Frame/WebBrowser control

I'm hosting some web content in a WPF app using the WebBrowser control (or Frame, havent' decided yet). There are some external influences that I'd like to use to simulate mouse wheel behavior in the web content. Is there a way for my WPF app to send mouse messages to the WebBrowser control, with a Delta (scroll) value that I specify?

Upvotes: 0

Views: 1706

Answers (1)

Anvaka
Anvaka

Reputation: 15823

If you will not find anything simpler try this. Get WebBrowser window handle, and SendMessage() WM_MOUSEWHEEL to it...

Hope this helps

Upvotes: 2

Related Questions